From a1b0f0facc9801de6cd02c9ffdb77accd24b5aa6 Mon Sep 17 00:00:00 2001 From: dheepa Date: Wed, 10 Nov 2021 03:46:16 +0000 Subject: [PATCH] Retail ETL jobs --- conf/server_credentials.txt | 11 + ex.sql | 1 + logs/retail_log.log | 306 + retail_log.log | 247241 +++++++++++++++++++++++++++++++++ retail_monthly_job_load.sh | 98 + retail_update_run.sh | 128 + sql/data_rollup_v1.0.sql | 74 + sql/scripts/job_load.sh | 105 + sql/scripts/run_schedule.sh | 176 + 9 files changed, 248140 insertions(+) create mode 100755 conf/server_credentials.txt create mode 100755 ex.sql create mode 100644 logs/retail_log.log create mode 100755 retail_log.log create mode 100755 retail_monthly_job_load.sh create mode 100755 retail_update_run.sh create mode 100755 sql/data_rollup_v1.0.sql create mode 100755 sql/scripts/job_load.sh create mode 100755 sql/scripts/run_schedule.sh diff --git a/conf/server_credentials.txt b/conf/server_credentials.txt new file mode 100755 index 0000000..3420267 --- /dev/null +++ b/conf/server_credentials.txt @@ -0,0 +1,11 @@ +#Dont change the order of the server credentials +#DB +user=postgres +host=localhost +password=j3(jLBq}e +protocol=TCP +db=fw_pre_prod +server=postgres +port=2345 + + diff --git a/ex.sql b/ex.sql new file mode 100755 index 0000000..3b5f242 --- /dev/null +++ b/ex.sql @@ -0,0 +1 @@ +select * from fw_core.fw_jobctl_runschedule; diff --git a/logs/retail_log.log b/logs/retail_log.log new file mode 100644 index 0000000..1bb0432 --- /dev/null +++ b/logs/retail_log.log @@ -0,0 +1,306 @@ +first arg: 10 +second arg: +ERROR: syntax error at or near ";" +LINE 1: ...test_runschedule_flag='1' and client_id=10 and function_id=; + ^ +ERROR: syntax error at or near ";" +LINE 1: ...test_runschedule_flag='1' and client_id=10 and function_id=; + ^ +ERROR: syntax error at or near ";" +LINE 1: ...test_runschedule_flag='1' and client_id=10 and function_id=; + ^ +ERROR: syntax error at or near ";" +LINE 1: ...test_runschedule_flag='1' and client_id=10 and function_id=; + ^ +ERROR: syntax error at or near "and" +LINE 1: ...obstep_master where client_id=10 and function_id= and run_fr... + ^ + No active job for daily for client_id=10 +first arg: 10 +second arg: +ERROR: syntax error at or near ";" +LINE 1: ...test_runschedule_flag='1' and client_id=10 and function_id=; + ^ +ERROR: syntax error at or near ";" +LINE 1: ...test_runschedule_flag='1' and client_id=10 and function_id=; + ^ +ERROR: syntax error at or near ";" +LINE 1: ...test_runschedule_flag='1' and client_id=10 and function_id=; + ^ +ERROR: syntax error at or near ";" +LINE 1: ...test_runschedule_flag='1' and client_id=10 and function_id=; + ^ +ERROR: syntax error at or near "and" +LINE 1: ...obstep_master where client_id=10 and function_id= and run_fr... + ^ + No active job for daily for client_id=10 +first arg: 10 +second arg: +ERROR: syntax error at or near ";" +LINE 1: ...test_runschedule_flag='1' and client_id=10 and function_id=; + ^ +ERROR: syntax error at or near ";" +LINE 1: ...test_runschedule_flag='1' and client_id=10 and function_id=; + ^ +ERROR: syntax error at or near ";" +LINE 1: ...test_runschedule_flag='1' and client_id=10 and function_id=; + ^ +ERROR: syntax error at or near ";" +LINE 1: ...test_runschedule_flag='1' and client_id=10 and function_id=; + ^ +ERROR: syntax error at or near "and" +LINE 1: ...obstep_master where client_id=10 and function_id= and run_fr... + ^ + No active job for daily for client_id=10 +first arg: 10 +second arg: +ERROR: syntax error at or near ";" +LINE 1: ...test_runschedule_flag='1' and client_id=10 and function_id=; + ^ +ERROR: syntax error at or near ";" +LINE 1: ...test_runschedule_flag='1' and client_id=10 and function_id=; + ^ +ERROR: syntax error at or near ";" +LINE 1: ...test_runschedule_flag='1' and client_id=10 and function_id=; + ^ +ERROR: syntax error at or near ";" +LINE 1: ...test_runschedule_flag='1' and client_id=10 and function_id=; + ^ +ERROR: syntax error at or near "and" +LINE 1: ...obstep_master where client_id=10 and function_id= and run_fr... + ^ + No active job for daily for client_id=10 +first arg: 10 +second arg: +ERROR: syntax error at or near ";" +LINE 1: ...test_runschedule_flag='1' and client_id=10 and function_id=; + ^ +ERROR: syntax error at or near ";" +LINE 1: ...test_runschedule_flag='1' and client_id=10 and function_id=; + ^ +ERROR: syntax error at or near ";" +LINE 1: ...test_runschedule_flag='1' and client_id=10 and function_id=; + ^ +ERROR: syntax error at or near ";" +LINE 1: ...test_runschedule_flag='1' and client_id=10 and function_id=; + ^ +ERROR: syntax error at or near "and" +LINE 1: ...obstep_master where client_id=10 and function_id= and run_fr... + ^ + No active job for daily for client_id=10 +first arg: 10 +second arg: +ERROR: syntax error at or near ";" +LINE 1: ...test_runschedule_flag='1' and client_id=10 and function_id=; + ^ +ERROR: syntax error at or near ";" +LINE 1: ...test_runschedule_flag='1' and client_id=10 and function_id=; + ^ +ERROR: syntax error at or near ";" +LINE 1: ...test_runschedule_flag='1' and client_id=10 and function_id=; + ^ +ERROR: syntax error at or near ";" +LINE 1: ...test_runschedule_flag='1' and client_id=10 and function_id=; + ^ +ERROR: syntax error at or near "and" +LINE 1: ...obstep_master where client_id=10 and function_id= and run_fr... + ^ + No active job for daily for client_id=10 +first arg: 10 +second arg: +ERROR: syntax error at or near ";" +LINE 1: ...test_runschedule_flag='1' and client_id=10 and function_id=; + ^ +ERROR: syntax error at or near ";" +LINE 1: ...test_runschedule_flag='1' and client_id=10 and function_id=; + ^ +ERROR: syntax error at or near ";" +LINE 1: ...test_runschedule_flag='1' and client_id=10 and function_id=; + ^ +ERROR: syntax error at or near ";" +LINE 1: ...test_runschedule_flag='1' and client_id=10 and function_id=; + ^ +ERROR: syntax error at or near "and" +LINE 1: ...obstep_master where client_id=10 and function_id= and run_fr... + ^ + No active job for daily for client_id=10 +first arg: 10 +second arg: +ERROR: syntax error at or near ";" +LINE 1: ...test_runschedule_flag='1' and client_id=10 and function_id=; + ^ +ERROR: syntax error at or near ";" +LINE 1: ...test_runschedule_flag='1' and client_id=10 and function_id=; + ^ +ERROR: syntax error at or near ";" +LINE 1: ...test_runschedule_flag='1' and client_id=10 and function_id=; + ^ +ERROR: syntax error at or near ";" +LINE 1: ...test_runschedule_flag='1' and client_id=10 and function_id=; + ^ +ERROR: syntax error at or near "and" +LINE 1: ...obstep_master where client_id=10 and function_id= and run_fr... + ^ + No active job for daily for client_id=10 +first arg: 10 +second arg: +ERROR: syntax error at or near ";" +LINE 1: ...test_runschedule_flag='1' and client_id=10 and function_id=; + ^ +ERROR: syntax error at or near ";" +LINE 1: ...test_runschedule_flag='1' and client_id=10 and function_id=; + ^ +ERROR: syntax error at or near ";" +LINE 1: ...test_runschedule_flag='1' and client_id=10 and function_id=; + ^ +ERROR: syntax error at or near ";" +LINE 1: ...test_runschedule_flag='1' and client_id=10 and function_id=; + ^ +ERROR: syntax error at or near "and" +LINE 1: ...obstep_master where client_id=10 and function_id= and run_fr... + ^ + No active job for daily for client_id=10 +first arg: 10 +second arg: +ERROR: syntax error at or near ";" +LINE 1: ...test_runschedule_flag='1' and client_id=10 and function_id=; + ^ +ERROR: syntax error at or near ";" +LINE 1: ...test_runschedule_flag='1' and client_id=10 and function_id=; + ^ +ERROR: syntax error at or near ";" +LINE 1: ...test_runschedule_flag='1' and client_id=10 and function_id=; + ^ +ERROR: syntax error at or near ";" +LINE 1: ...test_runschedule_flag='1' and client_id=10 and function_id=; + ^ +ERROR: syntax error at or near "and" +LINE 1: ...obstep_master where client_id=10 and function_id= and run_fr... + ^ + No active job for daily for client_id=10 +first arg: 10 +second arg: +ERROR: syntax error at or near ";" +LINE 1: ...test_runschedule_flag='1' and client_id=10 and function_id=; + ^ +ERROR: syntax error at or near ";" +LINE 1: ...test_runschedule_flag='1' and client_id=10 and function_id=; + ^ +ERROR: syntax error at or near ";" +LINE 1: ...test_runschedule_flag='1' and client_id=10 and function_id=; + ^ +ERROR: syntax error at or near ";" +LINE 1: ...test_runschedule_flag='1' and client_id=10 and function_id=; + ^ +ERROR: syntax error at or near "and" +LINE 1: ...obstep_master where client_id=10 and function_id= and run_fr... + ^ + No active job for daily for client_id=10 +first arg: 10 +second arg: +ERROR: syntax error at or near ";" +LINE 1: ...test_runschedule_flag='1' and client_id=10 and function_id=; + ^ +ERROR: syntax error at or near ";" +LINE 1: ...test_runschedule_flag='1' and client_id=10 and function_id=; + ^ +ERROR: syntax error at or near ";" +LINE 1: ...test_runschedule_flag='1' and client_id=10 and function_id=; + ^ +ERROR: syntax error at or near ";" +LINE 1: ...test_runschedule_flag='1' and client_id=10 and function_id=; + ^ +ERROR: syntax error at or near "and" +LINE 1: ...obstep_master where client_id=10 and function_id= and run_fr... + ^ + No active job for daily for client_id=10 +first arg: 10 +second arg: +ERROR: syntax error at or near ";" +LINE 1: ...test_runschedule_flag='1' and client_id=10 and function_id=; + ^ +ERROR: syntax error at or near ";" +LINE 1: ...test_runschedule_flag='1' and client_id=10 and function_id=; + ^ +ERROR: syntax error at or near ";" +LINE 1: ...test_runschedule_flag='1' and client_id=10 and function_id=; + ^ +ERROR: syntax error at or near ";" +LINE 1: ...test_runschedule_flag='1' and client_id=10 and function_id=; + ^ +ERROR: syntax error at or near "and" +LINE 1: ...obstep_master where client_id=10 and function_id= and run_fr... + ^ + No active job for daily for client_id=10 +first arg: 10 +second arg: +ERROR: syntax error at or near ";" +LINE 1: ...test_runschedule_flag='1' and client_id=10 and function_id=; + ^ +ERROR: syntax error at or near ";" +LINE 1: ...test_runschedule_flag='1' and client_id=10 and function_id=; + ^ +ERROR: syntax error at or near ";" +LINE 1: ...test_runschedule_flag='1' and client_id=10 and function_id=; + ^ +ERROR: syntax error at or near ";" +LINE 1: ...test_runschedule_flag='1' and client_id=10 and function_id=; + ^ +ERROR: syntax error at or near "and" +LINE 1: ...obstep_master where client_id=10 and function_id= and run_fr... + ^ + No active job for daily for client_id=10 +first arg: 10 +second arg: +ERROR: syntax error at or near ";" +LINE 1: ...test_runschedule_flag='1' and client_id=10 and function_id=; + ^ +ERROR: syntax error at or near ";" +LINE 1: ...test_runschedule_flag='1' and client_id=10 and function_id=; + ^ +ERROR: syntax error at or near ";" +LINE 1: ...test_runschedule_flag='1' and client_id=10 and function_id=; + ^ +ERROR: syntax error at or near ";" +LINE 1: ...test_runschedule_flag='1' and client_id=10 and function_id=; + ^ +ERROR: syntax error at or near "and" +LINE 1: ...obstep_master where client_id=10 and function_id= and run_fr... + ^ + No active job for daily for client_id=10 +first arg: 10 +second arg: +ERROR: syntax error at or near ";" +LINE 1: ...test_runschedule_flag='1' and client_id=10 and function_id=; + ^ +ERROR: syntax error at or near ";" +LINE 1: ...test_runschedule_flag='1' and client_id=10 and function_id=; + ^ +ERROR: syntax error at or near ";" +LINE 1: ...test_runschedule_flag='1' and client_id=10 and function_id=; + ^ +ERROR: syntax error at or near ";" +LINE 1: ...test_runschedule_flag='1' and client_id=10 and function_id=; + ^ +ERROR: syntax error at or near "and" +LINE 1: ...obstep_master where client_id=10 and function_id= and run_fr... + ^ + No active job for daily for client_id=10 +first arg: 10 +second arg: +ERROR: syntax error at or near ";" +LINE 1: ...test_runschedule_flag='1' and client_id=10 and function_id=; + ^ +ERROR: syntax error at or near ";" +LINE 1: ...test_runschedule_flag='1' and client_id=10 and function_id=; + ^ +ERROR: syntax error at or near ";" +LINE 1: ...test_runschedule_flag='1' and client_id=10 and function_id=; + ^ +ERROR: syntax error at or near ";" +LINE 1: ...test_runschedule_flag='1' and client_id=10 and function_id=; + ^ +ERROR: syntax error at or near "and" +LINE 1: ...obstep_master where client_id=10 and function_id= and run_fr... + ^ + No active job for daily for client_id=10 diff --git a/retail_log.log b/retail_log.log new file mode 100755 index 0000000..6f6c87c --- /dev/null +++ b/retail_log.log @@ -0,0 +1,247241 @@ +/bin/sh: 1: /home/compegence/dev/retail/retail_update_run.sh.sh: not found +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Apr 29 13:09:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/ex.sql + +SQL + + /home/compegence/dev/retail/ex.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-04-29" ignored +psql: warning: extra command-line argument "2021-04-29" ignored +psql: warning: extra command-line argument "{}" ignored +select * from fw_core.fw_jobctl_runschedule; + syspk | client_id | function_id | run_schedule_id | run_schedule_date | run_frequency | start_time | end_time | begin_status | end_status | created_by | updated_by | create_timestamp | update_timestamp +-------+-----------+-------------+-----------------+----------------------------+---------------+----------------------------+----------------------------+--------------+----------------+------------+------------+----------------------------+---------------------------- + 10 | 10 | 1 | 10 | 2021-04-29 12:56:23.626752 | monthly | 2021-04-29 12:57:51.855423 | 2021-04-29 12:57:52.459877 | started | stg1_completed | developer | developer | 2021-04-29 12:56:23.626752 | 2021-04-29 12:56:23.626752 + 11 | 10 | 1 | 11 | 2021-04-29 12:57:04.383954 | monthly | 2021-04-29 12:57:51.855423 | 2021-04-29 12:57:52.459877 | started | stg1_completed | developer | developer | 2021-04-29 12:57:04.383954 | 2021-04-29 12:57:04.383954 + 12 | 10 | 1 | 12 | 2021-04-29 12:57:51.598193 | monthly | 2021-04-29 12:57:51.855423 | 2021-04-29 12:57:52.459877 | started | stg1_completed | developer | developer | 2021-04-29 12:57:51.598193 | 2021-04-29 12:57:51.598193 + 13 | 10 | 1 | 13 | 2021-04-29 13:09:01.273491 | monthly | 2021-04-29 13:09:01.690418 | | started | | developer | developer | 2021-04-29 13:09:01.273491 | 2021-04-29 13:09:01.273491 +(4 rows) + +UPDATE 1 + /home/compegence/dev/retail/ex.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat May 1 01:00:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-01" ignored +psql: warning: extra command-line argument "2021-05-01" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int +from +( +with tbl_results as ( +with tbl as ( +select max(d4l1_date) max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +============= +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to +from +( +with tbl_results as ( +with tbl as ( +select max(to_date) max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +psql:/home/compegence/dev/retail/data_rollup_v1.0.sql:43: ERROR: syntax error at or near "=============" +LINE 1: ============= + ^ +============= +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to +from +( +with tbl_results as ( +with tbl as ( +select max(from_date) max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +psql:/home/compegence/dev/retail/data_rollup_v1.0.sql:63: ERROR: syntax error at or near "=============" +LINE 1: ============= + ^ +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon May 3 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-03" ignored +psql: warning: extra command-line argument "2021-05-03" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int +from +( +with tbl_results as ( +with tbl as ( +select max(d4l1_date) max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +============= +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to +from +( +with tbl_results as ( +with tbl as ( +select max(to_date) max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +psql:/home/compegence/dev/retail/data_rollup_v1.0.sql:43: ERROR: syntax error at or near "=============" +LINE 1: ============= + ^ +============= +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to +from +( +with tbl_results as ( +with tbl as ( +select max(from_date) max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +psql:/home/compegence/dev/retail/data_rollup_v1.0.sql:63: ERROR: syntax error at or near "=============" +LINE 1: ============= + ^ +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon May 3 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-03" ignored +psql: warning: extra command-line argument "2021-05-03" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int +from +( +with tbl_results as ( +with tbl as ( +select max(d4l1_date) max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +============= +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to +from +( +with tbl_results as ( +with tbl as ( +select max(to_date) max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +psql:/home/compegence/dev/retail/data_rollup_v1.0.sql:43: ERROR: syntax error at or near "=============" +LINE 1: ============= + ^ +============= +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to +from +( +with tbl_results as ( +with tbl as ( +select max(from_date) max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +psql:/home/compegence/dev/retail/data_rollup_v1.0.sql:63: ERROR: syntax error at or near "=============" +LINE 1: ============= + ^ +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon May 3 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-03" ignored +psql: warning: extra command-line argument "2021-05-03" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int +from +( +with tbl_results as ( +with tbl as ( +select max(d4l1_date) max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +--============= +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to +from +( +with tbl_results as ( +with tbl as ( +select max(to_date) max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +--============= +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to +from +( +with tbl_results as ( +with tbl as ( +select max(from_date) max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon May 3 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-03" ignored +psql: warning: extra command-line argument "2021-05-03" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon May 3 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-03" ignored +psql: warning: extra command-line argument "2021-05-03" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon May 3 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-03" ignored +psql: warning: extra command-line argument "2021-05-03" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon May 3 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-03" ignored +psql: warning: extra command-line argument "2021-05-03" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon May 3 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-03" ignored +psql: warning: extra command-line argument "2021-05-03" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon May 3 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-03" ignored +psql: warning: extra command-line argument "2021-05-03" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon May 3 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-03" ignored +psql: warning: extra command-line argument "2021-05-03" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon May 3 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-03" ignored +psql: warning: extra command-line argument "2021-05-03" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon May 3 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-03" ignored +psql: warning: extra command-line argument "2021-05-03" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon May 3 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-03" ignored +psql: warning: extra command-line argument "2021-05-03" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon May 3 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-03" ignored +psql: warning: extra command-line argument "2021-05-03" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon May 3 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-03" ignored +psql: warning: extra command-line argument "2021-05-03" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon May 3 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-03" ignored +psql: warning: extra command-line argument "2021-05-03" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon May 3 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-03" ignored +psql: warning: extra command-line argument "2021-05-03" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon May 3 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-03" ignored +psql: warning: extra command-line argument "2021-05-03" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon May 3 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-03" ignored +psql: warning: extra command-line argument "2021-05-03" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon May 3 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-03" ignored +psql: warning: extra command-line argument "2021-05-03" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon May 3 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-03" ignored +psql: warning: extra command-line argument "2021-05-03" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue May 4 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-04" ignored +psql: warning: extra command-line argument "2021-05-04" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue May 4 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-04" ignored +psql: warning: extra command-line argument "2021-05-04" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue May 4 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-04" ignored +psql: warning: extra command-line argument "2021-05-04" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue May 4 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-04" ignored +psql: warning: extra command-line argument "2021-05-04" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue May 4 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-04" ignored +psql: warning: extra command-line argument "2021-05-04" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue May 4 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-04" ignored +psql: warning: extra command-line argument "2021-05-04" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue May 4 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-04" ignored +psql: warning: extra command-line argument "2021-05-04" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue May 4 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-04" ignored +psql: warning: extra command-line argument "2021-05-04" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue May 4 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-04" ignored +psql: warning: extra command-line argument "2021-05-04" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue May 4 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-04" ignored +psql: warning: extra command-line argument "2021-05-04" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue May 4 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-04" ignored +psql: warning: extra command-line argument "2021-05-04" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue May 4 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-04" ignored +psql: warning: extra command-line argument "2021-05-04" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue May 4 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-04" ignored +psql: warning: extra command-line argument "2021-05-04" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue May 4 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-04" ignored +psql: warning: extra command-line argument "2021-05-04" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue May 4 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-04" ignored +psql: warning: extra command-line argument "2021-05-04" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue May 4 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-04" ignored +psql: warning: extra command-line argument "2021-05-04" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue May 4 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-04" ignored +psql: warning: extra command-line argument "2021-05-04" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue May 4 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-04" ignored +psql: warning: extra command-line argument "2021-05-04" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue May 4 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-04" ignored +psql: warning: extra command-line argument "2021-05-04" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue May 4 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-04" ignored +psql: warning: extra command-line argument "2021-05-04" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue May 4 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-04" ignored +psql: warning: extra command-line argument "2021-05-04" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue May 4 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-04" ignored +psql: warning: extra command-line argument "2021-05-04" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue May 4 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-04" ignored +psql: warning: extra command-line argument "2021-05-04" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue May 4 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-04" ignored +psql: warning: extra command-line argument "2021-05-04" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed May 5 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-05" ignored +psql: warning: extra command-line argument "2021-05-05" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed May 5 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-05" ignored +psql: warning: extra command-line argument "2021-05-05" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed May 5 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-05" ignored +psql: warning: extra command-line argument "2021-05-05" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed May 5 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-05" ignored +psql: warning: extra command-line argument "2021-05-05" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed May 5 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-05" ignored +psql: warning: extra command-line argument "2021-05-05" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed May 5 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-05" ignored +psql: warning: extra command-line argument "2021-05-05" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed May 5 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-05" ignored +psql: warning: extra command-line argument "2021-05-05" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed May 5 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-05" ignored +psql: warning: extra command-line argument "2021-05-05" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed May 5 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-05" ignored +psql: warning: extra command-line argument "2021-05-05" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed May 5 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-05" ignored +psql: warning: extra command-line argument "2021-05-05" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed May 5 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-05" ignored +psql: warning: extra command-line argument "2021-05-05" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed May 5 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-05" ignored +psql: warning: extra command-line argument "2021-05-05" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed May 5 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-05" ignored +psql: warning: extra command-line argument "2021-05-05" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed May 5 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-05" ignored +psql: warning: extra command-line argument "2021-05-05" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed May 5 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-05" ignored +psql: warning: extra command-line argument "2021-05-05" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed May 5 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-05" ignored +psql: warning: extra command-line argument "2021-05-05" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed May 5 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-05" ignored +psql: warning: extra command-line argument "2021-05-05" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed May 5 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-05" ignored +psql: warning: extra command-line argument "2021-05-05" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed May 5 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-05" ignored +psql: warning: extra command-line argument "2021-05-05" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed May 5 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-05" ignored +psql: warning: extra command-line argument "2021-05-05" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed May 5 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-05" ignored +psql: warning: extra command-line argument "2021-05-05" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed May 5 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-05" ignored +psql: warning: extra command-line argument "2021-05-05" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed May 5 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-05" ignored +psql: warning: extra command-line argument "2021-05-05" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed May 5 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-05" ignored +psql: warning: extra command-line argument "2021-05-05" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu May 6 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-06" ignored +psql: warning: extra command-line argument "2021-05-06" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu May 6 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-06" ignored +psql: warning: extra command-line argument "2021-05-06" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu May 6 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-06" ignored +psql: warning: extra command-line argument "2021-05-06" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu May 6 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-06" ignored +psql: warning: extra command-line argument "2021-05-06" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu May 6 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-06" ignored +psql: warning: extra command-line argument "2021-05-06" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu May 6 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-06" ignored +psql: warning: extra command-line argument "2021-05-06" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu May 6 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-06" ignored +psql: warning: extra command-line argument "2021-05-06" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu May 6 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-06" ignored +psql: warning: extra command-line argument "2021-05-06" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu May 6 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-06" ignored +psql: warning: extra command-line argument "2021-05-06" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu May 6 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-06" ignored +psql: warning: extra command-line argument "2021-05-06" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu May 6 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-06" ignored +psql: warning: extra command-line argument "2021-05-06" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu May 6 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-06" ignored +psql: warning: extra command-line argument "2021-05-06" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu May 6 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-06" ignored +psql: warning: extra command-line argument "2021-05-06" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu May 6 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-06" ignored +psql: warning: extra command-line argument "2021-05-06" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu May 6 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-06" ignored +psql: warning: extra command-line argument "2021-05-06" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu May 6 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-06" ignored +psql: warning: extra command-line argument "2021-05-06" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu May 6 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-06" ignored +psql: warning: extra command-line argument "2021-05-06" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu May 6 17:59:02 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-06" ignored +psql: warning: extra command-line argument "2021-05-06" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu May 6 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-06" ignored +psql: warning: extra command-line argument "2021-05-06" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu May 6 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-06" ignored +psql: warning: extra command-line argument "2021-05-06" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu May 6 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-06" ignored +psql: warning: extra command-line argument "2021-05-06" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu May 6 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-06" ignored +psql: warning: extra command-line argument "2021-05-06" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu May 6 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-06" ignored +psql: warning: extra command-line argument "2021-05-06" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu May 6 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-06" ignored +psql: warning: extra command-line argument "2021-05-06" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri May 7 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-07" ignored +psql: warning: extra command-line argument "2021-05-07" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri May 7 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-07" ignored +psql: warning: extra command-line argument "2021-05-07" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri May 7 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-07" ignored +psql: warning: extra command-line argument "2021-05-07" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri May 7 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-07" ignored +psql: warning: extra command-line argument "2021-05-07" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri May 7 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-07" ignored +psql: warning: extra command-line argument "2021-05-07" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri May 7 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-07" ignored +psql: warning: extra command-line argument "2021-05-07" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri May 7 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-07" ignored +psql: warning: extra command-line argument "2021-05-07" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri May 7 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-07" ignored +psql: warning: extra command-line argument "2021-05-07" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri May 7 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-07" ignored +psql: warning: extra command-line argument "2021-05-07" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri May 7 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-07" ignored +psql: warning: extra command-line argument "2021-05-07" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri May 7 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-07" ignored +psql: warning: extra command-line argument "2021-05-07" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri May 7 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-07" ignored +psql: warning: extra command-line argument "2021-05-07" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri May 7 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-07" ignored +psql: warning: extra command-line argument "2021-05-07" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri May 7 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-07" ignored +psql: warning: extra command-line argument "2021-05-07" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri May 7 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-07" ignored +psql: warning: extra command-line argument "2021-05-07" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri May 7 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-07" ignored +psql: warning: extra command-line argument "2021-05-07" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri May 7 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-07" ignored +psql: warning: extra command-line argument "2021-05-07" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri May 7 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-07" ignored +psql: warning: extra command-line argument "2021-05-07" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri May 7 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-07" ignored +psql: warning: extra command-line argument "2021-05-07" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri May 7 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-07" ignored +psql: warning: extra command-line argument "2021-05-07" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri May 7 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-07" ignored +psql: warning: extra command-line argument "2021-05-07" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri May 7 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-07" ignored +psql: warning: extra command-line argument "2021-05-07" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri May 7 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-07" ignored +psql: warning: extra command-line argument "2021-05-07" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri May 7 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-07" ignored +psql: warning: extra command-line argument "2021-05-07" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat May 8 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-08" ignored +psql: warning: extra command-line argument "2021-05-08" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat May 8 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-08" ignored +psql: warning: extra command-line argument "2021-05-08" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat May 8 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-08" ignored +psql: warning: extra command-line argument "2021-05-08" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat May 8 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-08" ignored +psql: warning: extra command-line argument "2021-05-08" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat May 8 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-08" ignored +psql: warning: extra command-line argument "2021-05-08" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat May 8 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-08" ignored +psql: warning: extra command-line argument "2021-05-08" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat May 8 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-08" ignored +psql: warning: extra command-line argument "2021-05-08" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat May 8 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-08" ignored +psql: warning: extra command-line argument "2021-05-08" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat May 8 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-08" ignored +psql: warning: extra command-line argument "2021-05-08" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat May 8 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-08" ignored +psql: warning: extra command-line argument "2021-05-08" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat May 8 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-08" ignored +psql: warning: extra command-line argument "2021-05-08" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat May 8 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-08" ignored +psql: warning: extra command-line argument "2021-05-08" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat May 8 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-08" ignored +psql: warning: extra command-line argument "2021-05-08" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat May 8 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-08" ignored +psql: warning: extra command-line argument "2021-05-08" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat May 8 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-08" ignored +psql: warning: extra command-line argument "2021-05-08" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat May 8 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-08" ignored +psql: warning: extra command-line argument "2021-05-08" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat May 8 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-08" ignored +psql: warning: extra command-line argument "2021-05-08" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat May 8 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-08" ignored +psql: warning: extra command-line argument "2021-05-08" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat May 8 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-08" ignored +psql: warning: extra command-line argument "2021-05-08" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat May 8 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-08" ignored +psql: warning: extra command-line argument "2021-05-08" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat May 8 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-08" ignored +psql: warning: extra command-line argument "2021-05-08" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat May 8 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-08" ignored +psql: warning: extra command-line argument "2021-05-08" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat May 8 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-08" ignored +psql: warning: extra command-line argument "2021-05-08" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat May 8 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-08" ignored +psql: warning: extra command-line argument "2021-05-08" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun May 9 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-09" ignored +psql: warning: extra command-line argument "2021-05-09" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun May 9 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-09" ignored +psql: warning: extra command-line argument "2021-05-09" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun May 9 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-09" ignored +psql: warning: extra command-line argument "2021-05-09" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun May 9 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-09" ignored +psql: warning: extra command-line argument "2021-05-09" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun May 9 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-09" ignored +psql: warning: extra command-line argument "2021-05-09" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun May 9 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-09" ignored +psql: warning: extra command-line argument "2021-05-09" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun May 9 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-09" ignored +psql: warning: extra command-line argument "2021-05-09" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun May 9 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-09" ignored +psql: warning: extra command-line argument "2021-05-09" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun May 9 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-09" ignored +psql: warning: extra command-line argument "2021-05-09" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun May 9 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-09" ignored +psql: warning: extra command-line argument "2021-05-09" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun May 9 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-09" ignored +psql: warning: extra command-line argument "2021-05-09" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun May 9 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-09" ignored +psql: warning: extra command-line argument "2021-05-09" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun May 9 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-09" ignored +psql: warning: extra command-line argument "2021-05-09" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun May 9 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-09" ignored +psql: warning: extra command-line argument "2021-05-09" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun May 9 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-09" ignored +psql: warning: extra command-line argument "2021-05-09" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun May 9 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-09" ignored +psql: warning: extra command-line argument "2021-05-09" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun May 9 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-09" ignored +psql: warning: extra command-line argument "2021-05-09" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun May 9 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-09" ignored +psql: warning: extra command-line argument "2021-05-09" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun May 9 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-09" ignored +psql: warning: extra command-line argument "2021-05-09" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun May 9 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-09" ignored +psql: warning: extra command-line argument "2021-05-09" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun May 9 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-09" ignored +psql: warning: extra command-line argument "2021-05-09" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun May 9 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-09" ignored +psql: warning: extra command-line argument "2021-05-09" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun May 9 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-09" ignored +psql: warning: extra command-line argument "2021-05-09" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun May 9 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-09" ignored +psql: warning: extra command-line argument "2021-05-09" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon May 10 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-10" ignored +psql: warning: extra command-line argument "2021-05-10" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon May 10 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-10" ignored +psql: warning: extra command-line argument "2021-05-10" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon May 10 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-10" ignored +psql: warning: extra command-line argument "2021-05-10" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon May 10 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-10" ignored +psql: warning: extra command-line argument "2021-05-10" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon May 10 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-10" ignored +psql: warning: extra command-line argument "2021-05-10" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon May 10 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-10" ignored +psql: warning: extra command-line argument "2021-05-10" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon May 10 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-10" ignored +psql: warning: extra command-line argument "2021-05-10" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon May 10 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-10" ignored +psql: warning: extra command-line argument "2021-05-10" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon May 10 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-10" ignored +psql: warning: extra command-line argument "2021-05-10" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon May 10 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-10" ignored +psql: warning: extra command-line argument "2021-05-10" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon May 10 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-10" ignored +psql: warning: extra command-line argument "2021-05-10" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon May 10 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-10" ignored +psql: warning: extra command-line argument "2021-05-10" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon May 10 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-10" ignored +psql: warning: extra command-line argument "2021-05-10" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon May 10 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-10" ignored +psql: warning: extra command-line argument "2021-05-10" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon May 10 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-10" ignored +psql: warning: extra command-line argument "2021-05-10" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon May 10 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-10" ignored +psql: warning: extra command-line argument "2021-05-10" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon May 10 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-10" ignored +psql: warning: extra command-line argument "2021-05-10" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon May 10 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-10" ignored +psql: warning: extra command-line argument "2021-05-10" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon May 10 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-10" ignored +psql: warning: extra command-line argument "2021-05-10" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon May 10 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-10" ignored +psql: warning: extra command-line argument "2021-05-10" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon May 10 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-10" ignored +psql: warning: extra command-line argument "2021-05-10" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon May 10 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-10" ignored +psql: warning: extra command-line argument "2021-05-10" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon May 10 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-10" ignored +psql: warning: extra command-line argument "2021-05-10" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon May 10 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-10" ignored +psql: warning: extra command-line argument "2021-05-10" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue May 11 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-11" ignored +psql: warning: extra command-line argument "2021-05-11" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue May 11 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-11" ignored +psql: warning: extra command-line argument "2021-05-11" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue May 11 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-11" ignored +psql: warning: extra command-line argument "2021-05-11" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue May 11 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-11" ignored +psql: warning: extra command-line argument "2021-05-11" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue May 11 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-11" ignored +psql: warning: extra command-line argument "2021-05-11" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue May 11 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-11" ignored +psql: warning: extra command-line argument "2021-05-11" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue May 11 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-11" ignored +psql: warning: extra command-line argument "2021-05-11" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue May 11 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-11" ignored +psql: warning: extra command-line argument "2021-05-11" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue May 11 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-11" ignored +psql: warning: extra command-line argument "2021-05-11" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue May 11 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-11" ignored +psql: warning: extra command-line argument "2021-05-11" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue May 11 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-11" ignored +psql: warning: extra command-line argument "2021-05-11" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue May 11 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-11" ignored +psql: warning: extra command-line argument "2021-05-11" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue May 11 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-11" ignored +psql: warning: extra command-line argument "2021-05-11" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue May 11 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-11" ignored +psql: warning: extra command-line argument "2021-05-11" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue May 11 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-11" ignored +psql: warning: extra command-line argument "2021-05-11" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue May 11 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-11" ignored +psql: warning: extra command-line argument "2021-05-11" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue May 11 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-11" ignored +psql: warning: extra command-line argument "2021-05-11" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue May 11 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-11" ignored +psql: warning: extra command-line argument "2021-05-11" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue May 11 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-11" ignored +psql: warning: extra command-line argument "2021-05-11" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue May 11 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-11" ignored +psql: warning: extra command-line argument "2021-05-11" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue May 11 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-11" ignored +psql: warning: extra command-line argument "2021-05-11" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue May 11 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-11" ignored +psql: warning: extra command-line argument "2021-05-11" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue May 11 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-11" ignored +psql: warning: extra command-line argument "2021-05-11" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue May 11 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-11" ignored +psql: warning: extra command-line argument "2021-05-11" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed May 12 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-12" ignored +psql: warning: extra command-line argument "2021-05-12" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed May 12 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-12" ignored +psql: warning: extra command-line argument "2021-05-12" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed May 12 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-12" ignored +psql: warning: extra command-line argument "2021-05-12" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed May 12 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-12" ignored +psql: warning: extra command-line argument "2021-05-12" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed May 12 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-12" ignored +psql: warning: extra command-line argument "2021-05-12" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed May 12 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-12" ignored +psql: warning: extra command-line argument "2021-05-12" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed May 12 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-12" ignored +psql: warning: extra command-line argument "2021-05-12" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed May 12 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-12" ignored +psql: warning: extra command-line argument "2021-05-12" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed May 12 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-12" ignored +psql: warning: extra command-line argument "2021-05-12" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed May 12 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-12" ignored +psql: warning: extra command-line argument "2021-05-12" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed May 12 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-12" ignored +psql: warning: extra command-line argument "2021-05-12" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed May 12 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-12" ignored +psql: warning: extra command-line argument "2021-05-12" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed May 12 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-12" ignored +psql: warning: extra command-line argument "2021-05-12" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed May 12 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-12" ignored +psql: warning: extra command-line argument "2021-05-12" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed May 12 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-12" ignored +psql: warning: extra command-line argument "2021-05-12" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed May 12 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-12" ignored +psql: warning: extra command-line argument "2021-05-12" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed May 12 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-12" ignored +psql: warning: extra command-line argument "2021-05-12" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed May 12 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-12" ignored +psql: warning: extra command-line argument "2021-05-12" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed May 12 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-12" ignored +psql: warning: extra command-line argument "2021-05-12" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed May 12 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-12" ignored +psql: warning: extra command-line argument "2021-05-12" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed May 12 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-12" ignored +psql: warning: extra command-line argument "2021-05-12" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed May 12 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-12" ignored +psql: warning: extra command-line argument "2021-05-12" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed May 12 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-12" ignored +psql: warning: extra command-line argument "2021-05-12" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed May 12 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-12" ignored +psql: warning: extra command-line argument "2021-05-12" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu May 13 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-13" ignored +psql: warning: extra command-line argument "2021-05-13" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu May 13 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-13" ignored +psql: warning: extra command-line argument "2021-05-13" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu May 13 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-13" ignored +psql: warning: extra command-line argument "2021-05-13" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu May 13 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-13" ignored +psql: warning: extra command-line argument "2021-05-13" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu May 13 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-13" ignored +psql: warning: extra command-line argument "2021-05-13" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu May 13 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-13" ignored +psql: warning: extra command-line argument "2021-05-13" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu May 13 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-13" ignored +psql: warning: extra command-line argument "2021-05-13" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu May 13 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-13" ignored +psql: warning: extra command-line argument "2021-05-13" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu May 13 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-13" ignored +psql: warning: extra command-line argument "2021-05-13" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu May 13 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-13" ignored +psql: warning: extra command-line argument "2021-05-13" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu May 13 10:59:02 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-13" ignored +psql: warning: extra command-line argument "2021-05-13" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu May 13 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-13" ignored +psql: warning: extra command-line argument "2021-05-13" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu May 13 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-13" ignored +psql: warning: extra command-line argument "2021-05-13" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu May 13 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-13" ignored +psql: warning: extra command-line argument "2021-05-13" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu May 13 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-13" ignored +psql: warning: extra command-line argument "2021-05-13" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu May 13 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-13" ignored +psql: warning: extra command-line argument "2021-05-13" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu May 13 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-13" ignored +psql: warning: extra command-line argument "2021-05-13" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu May 13 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-13" ignored +psql: warning: extra command-line argument "2021-05-13" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu May 13 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-13" ignored +psql: warning: extra command-line argument "2021-05-13" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu May 13 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-13" ignored +psql: warning: extra command-line argument "2021-05-13" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu May 13 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-13" ignored +psql: warning: extra command-line argument "2021-05-13" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu May 13 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-13" ignored +psql: warning: extra command-line argument "2021-05-13" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu May 13 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-13" ignored +psql: warning: extra command-line argument "2021-05-13" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu May 13 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-13" ignored +psql: warning: extra command-line argument "2021-05-13" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri May 14 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-14" ignored +psql: warning: extra command-line argument "2021-05-14" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri May 14 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-14" ignored +psql: warning: extra command-line argument "2021-05-14" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri May 14 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-14" ignored +psql: warning: extra command-line argument "2021-05-14" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri May 14 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-14" ignored +psql: warning: extra command-line argument "2021-05-14" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri May 14 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-14" ignored +psql: warning: extra command-line argument "2021-05-14" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri May 14 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-14" ignored +psql: warning: extra command-line argument "2021-05-14" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri May 14 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-14" ignored +psql: warning: extra command-line argument "2021-05-14" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri May 14 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-14" ignored +psql: warning: extra command-line argument "2021-05-14" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri May 14 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-14" ignored +psql: warning: extra command-line argument "2021-05-14" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri May 14 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-14" ignored +psql: warning: extra command-line argument "2021-05-14" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri May 14 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-14" ignored +psql: warning: extra command-line argument "2021-05-14" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri May 14 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-14" ignored +psql: warning: extra command-line argument "2021-05-14" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri May 14 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-14" ignored +psql: warning: extra command-line argument "2021-05-14" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri May 14 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-14" ignored +psql: warning: extra command-line argument "2021-05-14" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri May 14 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-14" ignored +psql: warning: extra command-line argument "2021-05-14" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri May 14 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-14" ignored +psql: warning: extra command-line argument "2021-05-14" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri May 14 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-14" ignored +psql: warning: extra command-line argument "2021-05-14" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri May 14 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-14" ignored +psql: warning: extra command-line argument "2021-05-14" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri May 14 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-14" ignored +psql: warning: extra command-line argument "2021-05-14" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri May 14 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-14" ignored +psql: warning: extra command-line argument "2021-05-14" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri May 14 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-14" ignored +psql: warning: extra command-line argument "2021-05-14" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri May 14 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-14" ignored +psql: warning: extra command-line argument "2021-05-14" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri May 14 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-14" ignored +psql: warning: extra command-line argument "2021-05-14" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri May 14 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-14" ignored +psql: warning: extra command-line argument "2021-05-14" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat May 15 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-15" ignored +psql: warning: extra command-line argument "2021-05-15" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat May 15 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-15" ignored +psql: warning: extra command-line argument "2021-05-15" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat May 15 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-15" ignored +psql: warning: extra command-line argument "2021-05-15" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat May 15 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-15" ignored +psql: warning: extra command-line argument "2021-05-15" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat May 15 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-15" ignored +psql: warning: extra command-line argument "2021-05-15" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat May 15 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-15" ignored +psql: warning: extra command-line argument "2021-05-15" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat May 15 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-15" ignored +psql: warning: extra command-line argument "2021-05-15" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat May 15 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-15" ignored +psql: warning: extra command-line argument "2021-05-15" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat May 15 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-15" ignored +psql: warning: extra command-line argument "2021-05-15" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat May 15 09:59:02 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-15" ignored +psql: warning: extra command-line argument "2021-05-15" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat May 15 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-15" ignored +psql: warning: extra command-line argument "2021-05-15" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat May 15 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-15" ignored +psql: warning: extra command-line argument "2021-05-15" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat May 15 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-15" ignored +psql: warning: extra command-line argument "2021-05-15" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat May 15 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-15" ignored +psql: warning: extra command-line argument "2021-05-15" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat May 15 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-15" ignored +psql: warning: extra command-line argument "2021-05-15" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat May 15 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-15" ignored +psql: warning: extra command-line argument "2021-05-15" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat May 15 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-15" ignored +psql: warning: extra command-line argument "2021-05-15" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat May 15 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-15" ignored +psql: warning: extra command-line argument "2021-05-15" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat May 15 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-15" ignored +psql: warning: extra command-line argument "2021-05-15" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat May 15 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-15" ignored +psql: warning: extra command-line argument "2021-05-15" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat May 15 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-15" ignored +psql: warning: extra command-line argument "2021-05-15" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat May 15 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-15" ignored +psql: warning: extra command-line argument "2021-05-15" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat May 15 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-15" ignored +psql: warning: extra command-line argument "2021-05-15" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat May 15 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-15" ignored +psql: warning: extra command-line argument "2021-05-15" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun May 16 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-16" ignored +psql: warning: extra command-line argument "2021-05-16" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun May 16 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-16" ignored +psql: warning: extra command-line argument "2021-05-16" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun May 16 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-16" ignored +psql: warning: extra command-line argument "2021-05-16" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun May 16 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-16" ignored +psql: warning: extra command-line argument "2021-05-16" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun May 16 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-16" ignored +psql: warning: extra command-line argument "2021-05-16" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun May 16 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-16" ignored +psql: warning: extra command-line argument "2021-05-16" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun May 16 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-16" ignored +psql: warning: extra command-line argument "2021-05-16" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun May 16 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-16" ignored +psql: warning: extra command-line argument "2021-05-16" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun May 16 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-16" ignored +psql: warning: extra command-line argument "2021-05-16" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun May 16 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-16" ignored +psql: warning: extra command-line argument "2021-05-16" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun May 16 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-16" ignored +psql: warning: extra command-line argument "2021-05-16" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun May 16 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-16" ignored +psql: warning: extra command-line argument "2021-05-16" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun May 16 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-16" ignored +psql: warning: extra command-line argument "2021-05-16" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun May 16 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-16" ignored +psql: warning: extra command-line argument "2021-05-16" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun May 16 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-16" ignored +psql: warning: extra command-line argument "2021-05-16" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun May 16 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-16" ignored +psql: warning: extra command-line argument "2021-05-16" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun May 16 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-16" ignored +psql: warning: extra command-line argument "2021-05-16" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun May 16 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-16" ignored +psql: warning: extra command-line argument "2021-05-16" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun May 16 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-16" ignored +psql: warning: extra command-line argument "2021-05-16" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun May 16 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-16" ignored +psql: warning: extra command-line argument "2021-05-16" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun May 16 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-16" ignored +psql: warning: extra command-line argument "2021-05-16" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun May 16 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-16" ignored +psql: warning: extra command-line argument "2021-05-16" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun May 16 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-16" ignored +psql: warning: extra command-line argument "2021-05-16" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun May 16 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-16" ignored +psql: warning: extra command-line argument "2021-05-16" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon May 17 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-17" ignored +psql: warning: extra command-line argument "2021-05-17" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon May 17 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-17" ignored +psql: warning: extra command-line argument "2021-05-17" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon May 17 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-17" ignored +psql: warning: extra command-line argument "2021-05-17" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon May 17 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-17" ignored +psql: warning: extra command-line argument "2021-05-17" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon May 17 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-17" ignored +psql: warning: extra command-line argument "2021-05-17" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon May 17 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-17" ignored +psql: warning: extra command-line argument "2021-05-17" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon May 17 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-17" ignored +psql: warning: extra command-line argument "2021-05-17" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon May 17 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-17" ignored +psql: warning: extra command-line argument "2021-05-17" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon May 17 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-17" ignored +psql: warning: extra command-line argument "2021-05-17" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon May 17 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-17" ignored +psql: warning: extra command-line argument "2021-05-17" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon May 17 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-17" ignored +psql: warning: extra command-line argument "2021-05-17" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon May 17 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-17" ignored +psql: warning: extra command-line argument "2021-05-17" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon May 17 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-17" ignored +psql: warning: extra command-line argument "2021-05-17" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon May 17 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-17" ignored +psql: warning: extra command-line argument "2021-05-17" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon May 17 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-17" ignored +psql: warning: extra command-line argument "2021-05-17" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon May 17 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-17" ignored +psql: warning: extra command-line argument "2021-05-17" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon May 17 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-17" ignored +psql: warning: extra command-line argument "2021-05-17" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon May 17 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-17" ignored +psql: warning: extra command-line argument "2021-05-17" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon May 17 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-17" ignored +psql: warning: extra command-line argument "2021-05-17" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon May 17 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-17" ignored +psql: warning: extra command-line argument "2021-05-17" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon May 17 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-17" ignored +psql: warning: extra command-line argument "2021-05-17" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon May 17 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-17" ignored +psql: warning: extra command-line argument "2021-05-17" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon May 17 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-17" ignored +psql: warning: extra command-line argument "2021-05-17" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon May 17 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-17" ignored +psql: warning: extra command-line argument "2021-05-17" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue May 18 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-18" ignored +psql: warning: extra command-line argument "2021-05-18" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue May 18 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-18" ignored +psql: warning: extra command-line argument "2021-05-18" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue May 18 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-18" ignored +psql: warning: extra command-line argument "2021-05-18" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue May 18 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-18" ignored +psql: warning: extra command-line argument "2021-05-18" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue May 18 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-18" ignored +psql: warning: extra command-line argument "2021-05-18" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue May 18 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-18" ignored +psql: warning: extra command-line argument "2021-05-18" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue May 18 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-18" ignored +psql: warning: extra command-line argument "2021-05-18" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue May 18 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-18" ignored +psql: warning: extra command-line argument "2021-05-18" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue May 18 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-18" ignored +psql: warning: extra command-line argument "2021-05-18" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue May 18 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-18" ignored +psql: warning: extra command-line argument "2021-05-18" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue May 18 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-18" ignored +psql: warning: extra command-line argument "2021-05-18" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue May 18 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-18" ignored +psql: warning: extra command-line argument "2021-05-18" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue May 18 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-18" ignored +psql: warning: extra command-line argument "2021-05-18" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue May 18 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-18" ignored +psql: warning: extra command-line argument "2021-05-18" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue May 18 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-18" ignored +psql: warning: extra command-line argument "2021-05-18" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue May 18 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-18" ignored +psql: warning: extra command-line argument "2021-05-18" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue May 18 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-18" ignored +psql: warning: extra command-line argument "2021-05-18" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue May 18 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-18" ignored +psql: warning: extra command-line argument "2021-05-18" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue May 18 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-18" ignored +psql: warning: extra command-line argument "2021-05-18" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue May 18 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-18" ignored +psql: warning: extra command-line argument "2021-05-18" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue May 18 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-18" ignored +psql: warning: extra command-line argument "2021-05-18" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue May 18 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-18" ignored +psql: warning: extra command-line argument "2021-05-18" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue May 18 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-18" ignored +psql: warning: extra command-line argument "2021-05-18" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue May 18 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-18" ignored +psql: warning: extra command-line argument "2021-05-18" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed May 19 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-19" ignored +psql: warning: extra command-line argument "2021-05-19" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed May 19 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-19" ignored +psql: warning: extra command-line argument "2021-05-19" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed May 19 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-19" ignored +psql: warning: extra command-line argument "2021-05-19" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed May 19 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-19" ignored +psql: warning: extra command-line argument "2021-05-19" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed May 19 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-19" ignored +psql: warning: extra command-line argument "2021-05-19" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed May 19 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-19" ignored +psql: warning: extra command-line argument "2021-05-19" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed May 19 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-19" ignored +psql: warning: extra command-line argument "2021-05-19" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed May 19 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-19" ignored +psql: warning: extra command-line argument "2021-05-19" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed May 19 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-19" ignored +psql: warning: extra command-line argument "2021-05-19" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed May 19 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-19" ignored +psql: warning: extra command-line argument "2021-05-19" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed May 19 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-19" ignored +psql: warning: extra command-line argument "2021-05-19" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed May 19 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-19" ignored +psql: warning: extra command-line argument "2021-05-19" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed May 19 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-19" ignored +psql: warning: extra command-line argument "2021-05-19" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed May 19 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-19" ignored +psql: warning: extra command-line argument "2021-05-19" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed May 19 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-19" ignored +psql: warning: extra command-line argument "2021-05-19" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed May 19 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-19" ignored +psql: warning: extra command-line argument "2021-05-19" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed May 19 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-19" ignored +psql: warning: extra command-line argument "2021-05-19" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed May 19 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-19" ignored +psql: warning: extra command-line argument "2021-05-19" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed May 19 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-19" ignored +psql: warning: extra command-line argument "2021-05-19" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed May 19 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-19" ignored +psql: warning: extra command-line argument "2021-05-19" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed May 19 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-19" ignored +psql: warning: extra command-line argument "2021-05-19" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed May 19 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-19" ignored +psql: warning: extra command-line argument "2021-05-19" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed May 19 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-19" ignored +psql: warning: extra command-line argument "2021-05-19" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed May 19 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-19" ignored +psql: warning: extra command-line argument "2021-05-19" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu May 20 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-20" ignored +psql: warning: extra command-line argument "2021-05-20" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu May 20 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-20" ignored +psql: warning: extra command-line argument "2021-05-20" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu May 20 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-20" ignored +psql: warning: extra command-line argument "2021-05-20" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu May 20 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-20" ignored +psql: warning: extra command-line argument "2021-05-20" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu May 20 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-20" ignored +psql: warning: extra command-line argument "2021-05-20" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu May 20 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-20" ignored +psql: warning: extra command-line argument "2021-05-20" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu May 20 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-20" ignored +psql: warning: extra command-line argument "2021-05-20" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu May 20 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-20" ignored +psql: warning: extra command-line argument "2021-05-20" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu May 20 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-20" ignored +psql: warning: extra command-line argument "2021-05-20" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu May 20 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-20" ignored +psql: warning: extra command-line argument "2021-05-20" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu May 20 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-20" ignored +psql: warning: extra command-line argument "2021-05-20" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu May 20 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-20" ignored +psql: warning: extra command-line argument "2021-05-20" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu May 20 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-20" ignored +psql: warning: extra command-line argument "2021-05-20" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu May 20 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-20" ignored +psql: warning: extra command-line argument "2021-05-20" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu May 20 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-20" ignored +psql: warning: extra command-line argument "2021-05-20" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu May 20 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-20" ignored +psql: warning: extra command-line argument "2021-05-20" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu May 20 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-20" ignored +psql: warning: extra command-line argument "2021-05-20" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu May 20 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-20" ignored +psql: warning: extra command-line argument "2021-05-20" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu May 20 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-20" ignored +psql: warning: extra command-line argument "2021-05-20" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu May 20 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-20" ignored +psql: warning: extra command-line argument "2021-05-20" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu May 20 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-20" ignored +psql: warning: extra command-line argument "2021-05-20" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu May 20 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-20" ignored +psql: warning: extra command-line argument "2021-05-20" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu May 20 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-20" ignored +psql: warning: extra command-line argument "2021-05-20" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu May 20 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-20" ignored +psql: warning: extra command-line argument "2021-05-20" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri May 21 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-21" ignored +psql: warning: extra command-line argument "2021-05-21" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri May 21 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-21" ignored +psql: warning: extra command-line argument "2021-05-21" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri May 21 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-21" ignored +psql: warning: extra command-line argument "2021-05-21" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri May 21 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-21" ignored +psql: warning: extra command-line argument "2021-05-21" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri May 21 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-21" ignored +psql: warning: extra command-line argument "2021-05-21" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri May 21 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-21" ignored +psql: warning: extra command-line argument "2021-05-21" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri May 21 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-21" ignored +psql: warning: extra command-line argument "2021-05-21" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri May 21 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-21" ignored +psql: warning: extra command-line argument "2021-05-21" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri May 21 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-21" ignored +psql: warning: extra command-line argument "2021-05-21" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri May 21 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-21" ignored +psql: warning: extra command-line argument "2021-05-21" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri May 21 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-21" ignored +psql: warning: extra command-line argument "2021-05-21" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri May 21 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-21" ignored +psql: warning: extra command-line argument "2021-05-21" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri May 21 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-21" ignored +psql: warning: extra command-line argument "2021-05-21" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri May 21 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-21" ignored +psql: warning: extra command-line argument "2021-05-21" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri May 21 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-21" ignored +psql: warning: extra command-line argument "2021-05-21" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri May 21 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-21" ignored +psql: warning: extra command-line argument "2021-05-21" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri May 21 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-21" ignored +psql: warning: extra command-line argument "2021-05-21" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri May 21 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-21" ignored +psql: warning: extra command-line argument "2021-05-21" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri May 21 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-21" ignored +psql: warning: extra command-line argument "2021-05-21" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri May 21 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-21" ignored +psql: warning: extra command-line argument "2021-05-21" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri May 21 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-21" ignored +psql: warning: extra command-line argument "2021-05-21" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri May 21 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-21" ignored +psql: warning: extra command-line argument "2021-05-21" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri May 21 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-21" ignored +psql: warning: extra command-line argument "2021-05-21" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri May 21 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-21" ignored +psql: warning: extra command-line argument "2021-05-21" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat May 22 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-22" ignored +psql: warning: extra command-line argument "2021-05-22" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat May 22 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-22" ignored +psql: warning: extra command-line argument "2021-05-22" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat May 22 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-22" ignored +psql: warning: extra command-line argument "2021-05-22" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat May 22 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-22" ignored +psql: warning: extra command-line argument "2021-05-22" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat May 22 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-22" ignored +psql: warning: extra command-line argument "2021-05-22" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat May 22 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-22" ignored +psql: warning: extra command-line argument "2021-05-22" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat May 22 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-22" ignored +psql: warning: extra command-line argument "2021-05-22" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat May 22 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-22" ignored +psql: warning: extra command-line argument "2021-05-22" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat May 22 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-22" ignored +psql: warning: extra command-line argument "2021-05-22" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat May 22 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-22" ignored +psql: warning: extra command-line argument "2021-05-22" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat May 22 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-22" ignored +psql: warning: extra command-line argument "2021-05-22" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat May 22 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-22" ignored +psql: warning: extra command-line argument "2021-05-22" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat May 22 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-22" ignored +psql: warning: extra command-line argument "2021-05-22" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat May 22 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-22" ignored +psql: warning: extra command-line argument "2021-05-22" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat May 22 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-22" ignored +psql: warning: extra command-line argument "2021-05-22" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat May 22 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-22" ignored +psql: warning: extra command-line argument "2021-05-22" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat May 22 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-22" ignored +psql: warning: extra command-line argument "2021-05-22" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat May 22 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-22" ignored +psql: warning: extra command-line argument "2021-05-22" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat May 22 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-22" ignored +psql: warning: extra command-line argument "2021-05-22" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat May 22 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-22" ignored +psql: warning: extra command-line argument "2021-05-22" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat May 22 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-22" ignored +psql: warning: extra command-line argument "2021-05-22" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat May 22 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-22" ignored +psql: warning: extra command-line argument "2021-05-22" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat May 22 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-22" ignored +psql: warning: extra command-line argument "2021-05-22" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat May 22 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-22" ignored +psql: warning: extra command-line argument "2021-05-22" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun May 23 00:59:02 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-23" ignored +psql: warning: extra command-line argument "2021-05-23" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun May 23 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-23" ignored +psql: warning: extra command-line argument "2021-05-23" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun May 23 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-23" ignored +psql: warning: extra command-line argument "2021-05-23" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun May 23 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-23" ignored +psql: warning: extra command-line argument "2021-05-23" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun May 23 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-23" ignored +psql: warning: extra command-line argument "2021-05-23" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun May 23 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-23" ignored +psql: warning: extra command-line argument "2021-05-23" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun May 23 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-23" ignored +psql: warning: extra command-line argument "2021-05-23" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun May 23 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-23" ignored +psql: warning: extra command-line argument "2021-05-23" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun May 23 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-23" ignored +psql: warning: extra command-line argument "2021-05-23" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun May 23 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-23" ignored +psql: warning: extra command-line argument "2021-05-23" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun May 23 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-23" ignored +psql: warning: extra command-line argument "2021-05-23" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun May 23 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-23" ignored +psql: warning: extra command-line argument "2021-05-23" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun May 23 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-23" ignored +psql: warning: extra command-line argument "2021-05-23" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun May 23 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-23" ignored +psql: warning: extra command-line argument "2021-05-23" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun May 23 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-23" ignored +psql: warning: extra command-line argument "2021-05-23" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun May 23 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-23" ignored +psql: warning: extra command-line argument "2021-05-23" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun May 23 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-23" ignored +psql: warning: extra command-line argument "2021-05-23" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun May 23 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-23" ignored +psql: warning: extra command-line argument "2021-05-23" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun May 23 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-23" ignored +psql: warning: extra command-line argument "2021-05-23" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun May 23 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-23" ignored +psql: warning: extra command-line argument "2021-05-23" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun May 23 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-23" ignored +psql: warning: extra command-line argument "2021-05-23" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun May 23 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-23" ignored +psql: warning: extra command-line argument "2021-05-23" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun May 23 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-23" ignored +psql: warning: extra command-line argument "2021-05-23" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun May 23 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-23" ignored +psql: warning: extra command-line argument "2021-05-23" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon May 24 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-24" ignored +psql: warning: extra command-line argument "2021-05-24" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon May 24 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-24" ignored +psql: warning: extra command-line argument "2021-05-24" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon May 24 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-24" ignored +psql: warning: extra command-line argument "2021-05-24" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon May 24 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-24" ignored +psql: warning: extra command-line argument "2021-05-24" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon May 24 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-24" ignored +psql: warning: extra command-line argument "2021-05-24" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon May 24 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-24" ignored +psql: warning: extra command-line argument "2021-05-24" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon May 24 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-24" ignored +psql: warning: extra command-line argument "2021-05-24" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon May 24 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-24" ignored +psql: warning: extra command-line argument "2021-05-24" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon May 24 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-24" ignored +psql: warning: extra command-line argument "2021-05-24" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon May 24 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-24" ignored +psql: warning: extra command-line argument "2021-05-24" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon May 24 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-24" ignored +psql: warning: extra command-line argument "2021-05-24" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon May 24 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-24" ignored +psql: warning: extra command-line argument "2021-05-24" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon May 24 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-24" ignored +psql: warning: extra command-line argument "2021-05-24" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon May 24 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-24" ignored +psql: warning: extra command-line argument "2021-05-24" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon May 24 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-24" ignored +psql: warning: extra command-line argument "2021-05-24" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon May 24 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-24" ignored +psql: warning: extra command-line argument "2021-05-24" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon May 24 16:59:02 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-24" ignored +psql: warning: extra command-line argument "2021-05-24" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon May 24 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-24" ignored +psql: warning: extra command-line argument "2021-05-24" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon May 24 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-24" ignored +psql: warning: extra command-line argument "2021-05-24" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon May 24 19:59:02 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-24" ignored +psql: warning: extra command-line argument "2021-05-24" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon May 24 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-24" ignored +psql: warning: extra command-line argument "2021-05-24" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon May 24 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-24" ignored +psql: warning: extra command-line argument "2021-05-24" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon May 24 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-24" ignored +psql: warning: extra command-line argument "2021-05-24" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon May 24 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-24" ignored +psql: warning: extra command-line argument "2021-05-24" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue May 25 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-25" ignored +psql: warning: extra command-line argument "2021-05-25" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue May 25 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-25" ignored +psql: warning: extra command-line argument "2021-05-25" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue May 25 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-25" ignored +psql: warning: extra command-line argument "2021-05-25" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue May 25 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-25" ignored +psql: warning: extra command-line argument "2021-05-25" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue May 25 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-25" ignored +psql: warning: extra command-line argument "2021-05-25" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue May 25 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-25" ignored +psql: warning: extra command-line argument "2021-05-25" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue May 25 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-25" ignored +psql: warning: extra command-line argument "2021-05-25" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue May 25 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-25" ignored +psql: warning: extra command-line argument "2021-05-25" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue May 25 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-25" ignored +psql: warning: extra command-line argument "2021-05-25" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue May 25 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-25" ignored +psql: warning: extra command-line argument "2021-05-25" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue May 25 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-25" ignored +psql: warning: extra command-line argument "2021-05-25" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue May 25 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-25" ignored +psql: warning: extra command-line argument "2021-05-25" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue May 25 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-25" ignored +psql: warning: extra command-line argument "2021-05-25" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue May 25 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-25" ignored +psql: warning: extra command-line argument "2021-05-25" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue May 25 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-25" ignored +psql: warning: extra command-line argument "2021-05-25" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue May 25 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-25" ignored +psql: warning: extra command-line argument "2021-05-25" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue May 25 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-25" ignored +psql: warning: extra command-line argument "2021-05-25" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue May 25 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-25" ignored +psql: warning: extra command-line argument "2021-05-25" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue May 25 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-25" ignored +psql: warning: extra command-line argument "2021-05-25" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue May 25 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-25" ignored +psql: warning: extra command-line argument "2021-05-25" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue May 25 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-25" ignored +psql: warning: extra command-line argument "2021-05-25" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue May 25 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-25" ignored +psql: warning: extra command-line argument "2021-05-25" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue May 25 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-25" ignored +psql: warning: extra command-line argument "2021-05-25" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue May 25 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-25" ignored +psql: warning: extra command-line argument "2021-05-25" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed May 26 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-26" ignored +psql: warning: extra command-line argument "2021-05-26" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed May 26 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-26" ignored +psql: warning: extra command-line argument "2021-05-26" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed May 26 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-26" ignored +psql: warning: extra command-line argument "2021-05-26" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed May 26 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-26" ignored +psql: warning: extra command-line argument "2021-05-26" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed May 26 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-26" ignored +psql: warning: extra command-line argument "2021-05-26" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed May 26 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-26" ignored +psql: warning: extra command-line argument "2021-05-26" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed May 26 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-26" ignored +psql: warning: extra command-line argument "2021-05-26" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed May 26 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-26" ignored +psql: warning: extra command-line argument "2021-05-26" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed May 26 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-26" ignored +psql: warning: extra command-line argument "2021-05-26" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed May 26 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-26" ignored +psql: warning: extra command-line argument "2021-05-26" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed May 26 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-26" ignored +psql: warning: extra command-line argument "2021-05-26" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed May 26 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-26" ignored +psql: warning: extra command-line argument "2021-05-26" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed May 26 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-26" ignored +psql: warning: extra command-line argument "2021-05-26" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed May 26 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-26" ignored +psql: warning: extra command-line argument "2021-05-26" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed May 26 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-26" ignored +psql: warning: extra command-line argument "2021-05-26" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed May 26 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-26" ignored +psql: warning: extra command-line argument "2021-05-26" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed May 26 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-26" ignored +psql: warning: extra command-line argument "2021-05-26" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed May 26 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-26" ignored +psql: warning: extra command-line argument "2021-05-26" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed May 26 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-26" ignored +psql: warning: extra command-line argument "2021-05-26" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed May 26 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-26" ignored +psql: warning: extra command-line argument "2021-05-26" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed May 26 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-26" ignored +psql: warning: extra command-line argument "2021-05-26" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed May 26 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-26" ignored +psql: warning: extra command-line argument "2021-05-26" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed May 26 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-26" ignored +psql: warning: extra command-line argument "2021-05-26" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed May 26 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-26" ignored +psql: warning: extra command-line argument "2021-05-26" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu May 27 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-27" ignored +psql: warning: extra command-line argument "2021-05-27" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu May 27 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-27" ignored +psql: warning: extra command-line argument "2021-05-27" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu May 27 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-27" ignored +psql: warning: extra command-line argument "2021-05-27" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu May 27 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-27" ignored +psql: warning: extra command-line argument "2021-05-27" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu May 27 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-27" ignored +psql: warning: extra command-line argument "2021-05-27" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu May 27 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-27" ignored +psql: warning: extra command-line argument "2021-05-27" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu May 27 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-27" ignored +psql: warning: extra command-line argument "2021-05-27" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu May 27 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-27" ignored +psql: warning: extra command-line argument "2021-05-27" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu May 27 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-27" ignored +psql: warning: extra command-line argument "2021-05-27" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu May 27 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-27" ignored +psql: warning: extra command-line argument "2021-05-27" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu May 27 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-27" ignored +psql: warning: extra command-line argument "2021-05-27" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu May 27 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-27" ignored +psql: warning: extra command-line argument "2021-05-27" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu May 27 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-27" ignored +psql: warning: extra command-line argument "2021-05-27" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu May 27 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-27" ignored +psql: warning: extra command-line argument "2021-05-27" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu May 27 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-27" ignored +psql: warning: extra command-line argument "2021-05-27" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu May 27 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-27" ignored +psql: warning: extra command-line argument "2021-05-27" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu May 27 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-27" ignored +psql: warning: extra command-line argument "2021-05-27" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu May 27 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-27" ignored +psql: warning: extra command-line argument "2021-05-27" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu May 27 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-27" ignored +psql: warning: extra command-line argument "2021-05-27" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu May 27 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-27" ignored +psql: warning: extra command-line argument "2021-05-27" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu May 27 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-27" ignored +psql: warning: extra command-line argument "2021-05-27" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu May 27 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-27" ignored +psql: warning: extra command-line argument "2021-05-27" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu May 27 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-27" ignored +psql: warning: extra command-line argument "2021-05-27" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu May 27 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-27" ignored +psql: warning: extra command-line argument "2021-05-27" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri May 28 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-28" ignored +psql: warning: extra command-line argument "2021-05-28" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri May 28 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-28" ignored +psql: warning: extra command-line argument "2021-05-28" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri May 28 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-28" ignored +psql: warning: extra command-line argument "2021-05-28" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri May 28 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-28" ignored +psql: warning: extra command-line argument "2021-05-28" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri May 28 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-28" ignored +psql: warning: extra command-line argument "2021-05-28" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri May 28 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-28" ignored +psql: warning: extra command-line argument "2021-05-28" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri May 28 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-28" ignored +psql: warning: extra command-line argument "2021-05-28" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri May 28 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-28" ignored +psql: warning: extra command-line argument "2021-05-28" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri May 28 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-28" ignored +psql: warning: extra command-line argument "2021-05-28" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri May 28 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-28" ignored +psql: warning: extra command-line argument "2021-05-28" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri May 28 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-28" ignored +psql: warning: extra command-line argument "2021-05-28" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri May 28 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-28" ignored +psql: warning: extra command-line argument "2021-05-28" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri May 28 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-28" ignored +psql: warning: extra command-line argument "2021-05-28" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri May 28 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-28" ignored +psql: warning: extra command-line argument "2021-05-28" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri May 28 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-28" ignored +psql: warning: extra command-line argument "2021-05-28" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri May 28 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-28" ignored +psql: warning: extra command-line argument "2021-05-28" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri May 28 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-28" ignored +psql: warning: extra command-line argument "2021-05-28" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri May 28 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-28" ignored +psql: warning: extra command-line argument "2021-05-28" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri May 28 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-28" ignored +psql: warning: extra command-line argument "2021-05-28" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri May 28 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-28" ignored +psql: warning: extra command-line argument "2021-05-28" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri May 28 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-28" ignored +psql: warning: extra command-line argument "2021-05-28" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri May 28 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-28" ignored +psql: warning: extra command-line argument "2021-05-28" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri May 28 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-28" ignored +psql: warning: extra command-line argument "2021-05-28" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri May 28 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-28" ignored +psql: warning: extra command-line argument "2021-05-28" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat May 29 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-29" ignored +psql: warning: extra command-line argument "2021-05-29" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat May 29 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-29" ignored +psql: warning: extra command-line argument "2021-05-29" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat May 29 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-29" ignored +psql: warning: extra command-line argument "2021-05-29" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat May 29 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-29" ignored +psql: warning: extra command-line argument "2021-05-29" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat May 29 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-29" ignored +psql: warning: extra command-line argument "2021-05-29" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat May 29 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-29" ignored +psql: warning: extra command-line argument "2021-05-29" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat May 29 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-29" ignored +psql: warning: extra command-line argument "2021-05-29" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat May 29 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-29" ignored +psql: warning: extra command-line argument "2021-05-29" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat May 29 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-29" ignored +psql: warning: extra command-line argument "2021-05-29" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat May 29 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-29" ignored +psql: warning: extra command-line argument "2021-05-29" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat May 29 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-29" ignored +psql: warning: extra command-line argument "2021-05-29" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat May 29 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-29" ignored +psql: warning: extra command-line argument "2021-05-29" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat May 29 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-29" ignored +psql: warning: extra command-line argument "2021-05-29" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat May 29 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-29" ignored +psql: warning: extra command-line argument "2021-05-29" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat May 29 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-29" ignored +psql: warning: extra command-line argument "2021-05-29" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat May 29 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-29" ignored +psql: warning: extra command-line argument "2021-05-29" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat May 29 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-29" ignored +psql: warning: extra command-line argument "2021-05-29" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat May 29 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-29" ignored +psql: warning: extra command-line argument "2021-05-29" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat May 29 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-29" ignored +psql: warning: extra command-line argument "2021-05-29" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat May 29 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-29" ignored +psql: warning: extra command-line argument "2021-05-29" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat May 29 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-29" ignored +psql: warning: extra command-line argument "2021-05-29" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat May 29 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-29" ignored +psql: warning: extra command-line argument "2021-05-29" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat May 29 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-29" ignored +psql: warning: extra command-line argument "2021-05-29" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat May 29 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-29" ignored +psql: warning: extra command-line argument "2021-05-29" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun May 30 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-30" ignored +psql: warning: extra command-line argument "2021-05-30" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun May 30 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-30" ignored +psql: warning: extra command-line argument "2021-05-30" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun May 30 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-30" ignored +psql: warning: extra command-line argument "2021-05-30" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun May 30 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-30" ignored +psql: warning: extra command-line argument "2021-05-30" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun May 30 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-30" ignored +psql: warning: extra command-line argument "2021-05-30" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun May 30 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-30" ignored +psql: warning: extra command-line argument "2021-05-30" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun May 30 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-30" ignored +psql: warning: extra command-line argument "2021-05-30" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun May 30 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-30" ignored +psql: warning: extra command-line argument "2021-05-30" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun May 30 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-30" ignored +psql: warning: extra command-line argument "2021-05-30" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun May 30 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-30" ignored +psql: warning: extra command-line argument "2021-05-30" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun May 30 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-30" ignored +psql: warning: extra command-line argument "2021-05-30" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun May 30 11:59:02 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-30" ignored +psql: warning: extra command-line argument "2021-05-30" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun May 30 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-30" ignored +psql: warning: extra command-line argument "2021-05-30" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun May 30 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-30" ignored +psql: warning: extra command-line argument "2021-05-30" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun May 30 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-30" ignored +psql: warning: extra command-line argument "2021-05-30" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun May 30 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-30" ignored +psql: warning: extra command-line argument "2021-05-30" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun May 30 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-30" ignored +psql: warning: extra command-line argument "2021-05-30" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun May 30 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-30" ignored +psql: warning: extra command-line argument "2021-05-30" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun May 30 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-30" ignored +psql: warning: extra command-line argument "2021-05-30" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun May 30 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-30" ignored +psql: warning: extra command-line argument "2021-05-30" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun May 30 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-30" ignored +psql: warning: extra command-line argument "2021-05-30" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun May 30 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-30" ignored +psql: warning: extra command-line argument "2021-05-30" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun May 30 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-30" ignored +psql: warning: extra command-line argument "2021-05-30" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun May 30 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-30" ignored +psql: warning: extra command-line argument "2021-05-30" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon May 31 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-31" ignored +psql: warning: extra command-line argument "2021-05-31" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon May 31 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-31" ignored +psql: warning: extra command-line argument "2021-05-31" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon May 31 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-31" ignored +psql: warning: extra command-line argument "2021-05-31" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon May 31 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-31" ignored +psql: warning: extra command-line argument "2021-05-31" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon May 31 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-31" ignored +psql: warning: extra command-line argument "2021-05-31" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon May 31 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-31" ignored +psql: warning: extra command-line argument "2021-05-31" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon May 31 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-31" ignored +psql: warning: extra command-line argument "2021-05-31" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon May 31 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-31" ignored +psql: warning: extra command-line argument "2021-05-31" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon May 31 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-31" ignored +psql: warning: extra command-line argument "2021-05-31" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon May 31 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-31" ignored +psql: warning: extra command-line argument "2021-05-31" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon May 31 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-31" ignored +psql: warning: extra command-line argument "2021-05-31" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon May 31 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-31" ignored +psql: warning: extra command-line argument "2021-05-31" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon May 31 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-31" ignored +psql: warning: extra command-line argument "2021-05-31" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon May 31 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-31" ignored +psql: warning: extra command-line argument "2021-05-31" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon May 31 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-31" ignored +psql: warning: extra command-line argument "2021-05-31" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon May 31 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-31" ignored +psql: warning: extra command-line argument "2021-05-31" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon May 31 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-31" ignored +psql: warning: extra command-line argument "2021-05-31" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon May 31 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-31" ignored +psql: warning: extra command-line argument "2021-05-31" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon May 31 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-31" ignored +psql: warning: extra command-line argument "2021-05-31" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon May 31 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-31" ignored +psql: warning: extra command-line argument "2021-05-31" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon May 31 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-31" ignored +psql: warning: extra command-line argument "2021-05-31" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon May 31 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-31" ignored +psql: warning: extra command-line argument "2021-05-31" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon May 31 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-31" ignored +psql: warning: extra command-line argument "2021-05-31" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon May 31 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-05-31" ignored +psql: warning: extra command-line argument "2021-05-31" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jun 1 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-01" ignored +psql: warning: extra command-line argument "2021-06-01" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jun 1 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-01" ignored +psql: warning: extra command-line argument "2021-06-01" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jun 1 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-01" ignored +psql: warning: extra command-line argument "2021-06-01" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jun 1 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-01" ignored +psql: warning: extra command-line argument "2021-06-01" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jun 1 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-01" ignored +psql: warning: extra command-line argument "2021-06-01" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jun 1 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-01" ignored +psql: warning: extra command-line argument "2021-06-01" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jun 1 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-01" ignored +psql: warning: extra command-line argument "2021-06-01" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jun 1 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-01" ignored +psql: warning: extra command-line argument "2021-06-01" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jun 1 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-01" ignored +psql: warning: extra command-line argument "2021-06-01" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jun 1 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-01" ignored +psql: warning: extra command-line argument "2021-06-01" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jun 1 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-01" ignored +psql: warning: extra command-line argument "2021-06-01" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jun 1 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-01" ignored +psql: warning: extra command-line argument "2021-06-01" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jun 1 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-01" ignored +psql: warning: extra command-line argument "2021-06-01" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jun 1 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-01" ignored +psql: warning: extra command-line argument "2021-06-01" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jun 1 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-01" ignored +psql: warning: extra command-line argument "2021-06-01" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jun 1 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-01" ignored +psql: warning: extra command-line argument "2021-06-01" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jun 1 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-01" ignored +psql: warning: extra command-line argument "2021-06-01" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jun 1 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-01" ignored +psql: warning: extra command-line argument "2021-06-01" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jun 1 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-01" ignored +psql: warning: extra command-line argument "2021-06-01" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jun 1 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-01" ignored +psql: warning: extra command-line argument "2021-06-01" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jun 1 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-01" ignored +psql: warning: extra command-line argument "2021-06-01" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jun 1 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-01" ignored +psql: warning: extra command-line argument "2021-06-01" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jun 1 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-01" ignored +psql: warning: extra command-line argument "2021-06-01" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jun 1 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-01" ignored +psql: warning: extra command-line argument "2021-06-01" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jun 2 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-02" ignored +psql: warning: extra command-line argument "2021-06-02" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jun 2 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-02" ignored +psql: warning: extra command-line argument "2021-06-02" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jun 2 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-02" ignored +psql: warning: extra command-line argument "2021-06-02" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jun 2 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-02" ignored +psql: warning: extra command-line argument "2021-06-02" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jun 2 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-02" ignored +psql: warning: extra command-line argument "2021-06-02" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jun 2 05:11:00 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-02" ignored +psql: warning: extra command-line argument "2021-06-02" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jun 2 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-02" ignored +psql: warning: extra command-line argument "2021-06-02" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jun 2 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-02" ignored +psql: warning: extra command-line argument "2021-06-02" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jun 2 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-02" ignored +psql: warning: extra command-line argument "2021-06-02" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jun 2 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-02" ignored +psql: warning: extra command-line argument "2021-06-02" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jun 2 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-02" ignored +psql: warning: extra command-line argument "2021-06-02" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jun 2 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-02" ignored +psql: warning: extra command-line argument "2021-06-02" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jun 2 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-02" ignored +psql: warning: extra command-line argument "2021-06-02" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jun 2 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-02" ignored +psql: warning: extra command-line argument "2021-06-02" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jun 2 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-02" ignored +psql: warning: extra command-line argument "2021-06-02" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jun 2 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-02" ignored +psql: warning: extra command-line argument "2021-06-02" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jun 2 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-02" ignored +psql: warning: extra command-line argument "2021-06-02" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jun 2 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-02" ignored +psql: warning: extra command-line argument "2021-06-02" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jun 2 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-02" ignored +psql: warning: extra command-line argument "2021-06-02" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jun 2 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-02" ignored +psql: warning: extra command-line argument "2021-06-02" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jun 2 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-02" ignored +psql: warning: extra command-line argument "2021-06-02" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jun 2 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-02" ignored +psql: warning: extra command-line argument "2021-06-02" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jun 2 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-02" ignored +psql: warning: extra command-line argument "2021-06-02" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jun 2 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-02" ignored +psql: warning: extra command-line argument "2021-06-02" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jun 2 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-02" ignored +psql: warning: extra command-line argument "2021-06-02" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jun 3 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-03" ignored +psql: warning: extra command-line argument "2021-06-03" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jun 3 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-03" ignored +psql: warning: extra command-line argument "2021-06-03" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jun 3 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-03" ignored +psql: warning: extra command-line argument "2021-06-03" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jun 3 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-03" ignored +psql: warning: extra command-line argument "2021-06-03" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jun 3 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-03" ignored +psql: warning: extra command-line argument "2021-06-03" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jun 3 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-03" ignored +psql: warning: extra command-line argument "2021-06-03" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jun 3 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-03" ignored +psql: warning: extra command-line argument "2021-06-03" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jun 3 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-03" ignored +psql: warning: extra command-line argument "2021-06-03" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jun 3 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-03" ignored +psql: warning: extra command-line argument "2021-06-03" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jun 3 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-03" ignored +psql: warning: extra command-line argument "2021-06-03" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jun 3 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-03" ignored +psql: warning: extra command-line argument "2021-06-03" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jun 3 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-03" ignored +psql: warning: extra command-line argument "2021-06-03" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jun 3 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-03" ignored +psql: warning: extra command-line argument "2021-06-03" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jun 3 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-03" ignored +psql: warning: extra command-line argument "2021-06-03" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jun 3 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-03" ignored +psql: warning: extra command-line argument "2021-06-03" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jun 3 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-03" ignored +psql: warning: extra command-line argument "2021-06-03" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jun 3 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-03" ignored +psql: warning: extra command-line argument "2021-06-03" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jun 3 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-03" ignored +psql: warning: extra command-line argument "2021-06-03" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jun 3 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-03" ignored +psql: warning: extra command-line argument "2021-06-03" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jun 3 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-03" ignored +psql: warning: extra command-line argument "2021-06-03" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jun 3 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-03" ignored +psql: warning: extra command-line argument "2021-06-03" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jun 3 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-03" ignored +psql: warning: extra command-line argument "2021-06-03" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jun 3 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-03" ignored +psql: warning: extra command-line argument "2021-06-03" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jun 3 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-03" ignored +psql: warning: extra command-line argument "2021-06-03" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jun 4 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-04" ignored +psql: warning: extra command-line argument "2021-06-04" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jun 4 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-04" ignored +psql: warning: extra command-line argument "2021-06-04" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jun 4 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-04" ignored +psql: warning: extra command-line argument "2021-06-04" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jun 4 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-04" ignored +psql: warning: extra command-line argument "2021-06-04" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jun 4 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-04" ignored +psql: warning: extra command-line argument "2021-06-04" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jun 4 05:59:02 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-04" ignored +psql: warning: extra command-line argument "2021-06-04" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jun 4 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-04" ignored +psql: warning: extra command-line argument "2021-06-04" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jun 4 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-04" ignored +psql: warning: extra command-line argument "2021-06-04" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jun 4 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-04" ignored +psql: warning: extra command-line argument "2021-06-04" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jun 4 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-04" ignored +psql: warning: extra command-line argument "2021-06-04" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jun 4 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-04" ignored +psql: warning: extra command-line argument "2021-06-04" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jun 4 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-04" ignored +psql: warning: extra command-line argument "2021-06-04" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jun 4 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-04" ignored +psql: warning: extra command-line argument "2021-06-04" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jun 4 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-04" ignored +psql: warning: extra command-line argument "2021-06-04" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jun 4 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-04" ignored +psql: warning: extra command-line argument "2021-06-04" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jun 4 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-04" ignored +psql: warning: extra command-line argument "2021-06-04" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jun 4 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-04" ignored +psql: warning: extra command-line argument "2021-06-04" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jun 4 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-04" ignored +psql: warning: extra command-line argument "2021-06-04" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jun 4 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-04" ignored +psql: warning: extra command-line argument "2021-06-04" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jun 4 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-04" ignored +psql: warning: extra command-line argument "2021-06-04" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jun 4 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-04" ignored +psql: warning: extra command-line argument "2021-06-04" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jun 4 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-04" ignored +psql: warning: extra command-line argument "2021-06-04" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jun 4 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-04" ignored +psql: warning: extra command-line argument "2021-06-04" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jun 4 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-04" ignored +psql: warning: extra command-line argument "2021-06-04" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jun 5 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-05" ignored +psql: warning: extra command-line argument "2021-06-05" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jun 5 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-05" ignored +psql: warning: extra command-line argument "2021-06-05" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jun 5 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-05" ignored +psql: warning: extra command-line argument "2021-06-05" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jun 5 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-05" ignored +psql: warning: extra command-line argument "2021-06-05" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jun 5 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-05" ignored +psql: warning: extra command-line argument "2021-06-05" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jun 5 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-05" ignored +psql: warning: extra command-line argument "2021-06-05" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jun 5 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-05" ignored +psql: warning: extra command-line argument "2021-06-05" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jun 5 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-05" ignored +psql: warning: extra command-line argument "2021-06-05" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jun 5 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-05" ignored +psql: warning: extra command-line argument "2021-06-05" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jun 5 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-05" ignored +psql: warning: extra command-line argument "2021-06-05" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jun 5 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-05" ignored +psql: warning: extra command-line argument "2021-06-05" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jun 5 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-05" ignored +psql: warning: extra command-line argument "2021-06-05" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jun 5 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-05" ignored +psql: warning: extra command-line argument "2021-06-05" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jun 5 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-05" ignored +psql: warning: extra command-line argument "2021-06-05" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jun 5 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-05" ignored +psql: warning: extra command-line argument "2021-06-05" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jun 5 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-05" ignored +psql: warning: extra command-line argument "2021-06-05" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jun 5 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-05" ignored +psql: warning: extra command-line argument "2021-06-05" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jun 5 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-05" ignored +psql: warning: extra command-line argument "2021-06-05" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jun 5 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-05" ignored +psql: warning: extra command-line argument "2021-06-05" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jun 5 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-05" ignored +psql: warning: extra command-line argument "2021-06-05" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jun 5 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-05" ignored +psql: warning: extra command-line argument "2021-06-05" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jun 5 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-05" ignored +psql: warning: extra command-line argument "2021-06-05" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jun 5 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-05" ignored +psql: warning: extra command-line argument "2021-06-05" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jun 5 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-05" ignored +psql: warning: extra command-line argument "2021-06-05" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jun 6 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-06" ignored +psql: warning: extra command-line argument "2021-06-06" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jun 6 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-06" ignored +psql: warning: extra command-line argument "2021-06-06" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jun 6 02:59:02 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-06" ignored +psql: warning: extra command-line argument "2021-06-06" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jun 6 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-06" ignored +psql: warning: extra command-line argument "2021-06-06" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jun 6 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-06" ignored +psql: warning: extra command-line argument "2021-06-06" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jun 6 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-06" ignored +psql: warning: extra command-line argument "2021-06-06" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jun 6 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-06" ignored +psql: warning: extra command-line argument "2021-06-06" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jun 6 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-06" ignored +psql: warning: extra command-line argument "2021-06-06" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jun 6 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-06" ignored +psql: warning: extra command-line argument "2021-06-06" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jun 6 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-06" ignored +psql: warning: extra command-line argument "2021-06-06" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jun 6 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-06" ignored +psql: warning: extra command-line argument "2021-06-06" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jun 6 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-06" ignored +psql: warning: extra command-line argument "2021-06-06" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jun 6 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-06" ignored +psql: warning: extra command-line argument "2021-06-06" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jun 6 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-06" ignored +psql: warning: extra command-line argument "2021-06-06" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jun 6 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-06" ignored +psql: warning: extra command-line argument "2021-06-06" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jun 6 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-06" ignored +psql: warning: extra command-line argument "2021-06-06" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jun 6 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-06" ignored +psql: warning: extra command-line argument "2021-06-06" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jun 6 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-06" ignored +psql: warning: extra command-line argument "2021-06-06" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jun 6 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-06" ignored +psql: warning: extra command-line argument "2021-06-06" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jun 6 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-06" ignored +psql: warning: extra command-line argument "2021-06-06" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jun 6 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-06" ignored +psql: warning: extra command-line argument "2021-06-06" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jun 6 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-06" ignored +psql: warning: extra command-line argument "2021-06-06" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jun 6 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-06" ignored +psql: warning: extra command-line argument "2021-06-06" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jun 6 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-06" ignored +psql: warning: extra command-line argument "2021-06-06" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jun 7 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-07" ignored +psql: warning: extra command-line argument "2021-06-07" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jun 7 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-07" ignored +psql: warning: extra command-line argument "2021-06-07" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jun 7 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-07" ignored +psql: warning: extra command-line argument "2021-06-07" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jun 7 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-07" ignored +psql: warning: extra command-line argument "2021-06-07" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jun 7 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-07" ignored +psql: warning: extra command-line argument "2021-06-07" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jun 7 05:59:02 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-07" ignored +psql: warning: extra command-line argument "2021-06-07" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jun 7 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-07" ignored +psql: warning: extra command-line argument "2021-06-07" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jun 7 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-07" ignored +psql: warning: extra command-line argument "2021-06-07" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jun 7 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-07" ignored +psql: warning: extra command-line argument "2021-06-07" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jun 7 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-07" ignored +psql: warning: extra command-line argument "2021-06-07" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jun 7 10:59:02 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-07" ignored +psql: warning: extra command-line argument "2021-06-07" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jun 7 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-07" ignored +psql: warning: extra command-line argument "2021-06-07" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jun 7 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-07" ignored +psql: warning: extra command-line argument "2021-06-07" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jun 7 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-07" ignored +psql: warning: extra command-line argument "2021-06-07" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jun 7 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-07" ignored +psql: warning: extra command-line argument "2021-06-07" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jun 7 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-07" ignored +psql: warning: extra command-line argument "2021-06-07" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jun 7 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-07" ignored +psql: warning: extra command-line argument "2021-06-07" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jun 7 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-07" ignored +psql: warning: extra command-line argument "2021-06-07" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jun 7 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-07" ignored +psql: warning: extra command-line argument "2021-06-07" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jun 7 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-07" ignored +psql: warning: extra command-line argument "2021-06-07" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jun 7 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-07" ignored +psql: warning: extra command-line argument "2021-06-07" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jun 7 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-07" ignored +psql: warning: extra command-line argument "2021-06-07" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jun 7 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-07" ignored +psql: warning: extra command-line argument "2021-06-07" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jun 7 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-07" ignored +psql: warning: extra command-line argument "2021-06-07" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jun 8 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-08" ignored +psql: warning: extra command-line argument "2021-06-08" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jun 8 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-08" ignored +psql: warning: extra command-line argument "2021-06-08" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jun 8 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-08" ignored +psql: warning: extra command-line argument "2021-06-08" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jun 8 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-08" ignored +psql: warning: extra command-line argument "2021-06-08" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jun 8 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-08" ignored +psql: warning: extra command-line argument "2021-06-08" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jun 8 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-08" ignored +psql: warning: extra command-line argument "2021-06-08" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jun 8 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-08" ignored +psql: warning: extra command-line argument "2021-06-08" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jun 8 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-08" ignored +psql: warning: extra command-line argument "2021-06-08" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jun 8 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-08" ignored +psql: warning: extra command-line argument "2021-06-08" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jun 8 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-08" ignored +psql: warning: extra command-line argument "2021-06-08" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jun 8 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-08" ignored +psql: warning: extra command-line argument "2021-06-08" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jun 8 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-08" ignored +psql: warning: extra command-line argument "2021-06-08" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jun 8 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-08" ignored +psql: warning: extra command-line argument "2021-06-08" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jun 8 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-08" ignored +psql: warning: extra command-line argument "2021-06-08" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jun 8 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-08" ignored +psql: warning: extra command-line argument "2021-06-08" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jun 8 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-08" ignored +psql: warning: extra command-line argument "2021-06-08" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jun 8 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-08" ignored +psql: warning: extra command-line argument "2021-06-08" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jun 8 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-08" ignored +psql: warning: extra command-line argument "2021-06-08" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jun 8 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-08" ignored +psql: warning: extra command-line argument "2021-06-08" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jun 8 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-08" ignored +psql: warning: extra command-line argument "2021-06-08" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jun 8 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-08" ignored +psql: warning: extra command-line argument "2021-06-08" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jun 8 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-08" ignored +psql: warning: extra command-line argument "2021-06-08" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jun 8 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-08" ignored +psql: warning: extra command-line argument "2021-06-08" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jun 8 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-08" ignored +psql: warning: extra command-line argument "2021-06-08" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jun 9 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-09" ignored +psql: warning: extra command-line argument "2021-06-09" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jun 9 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-09" ignored +psql: warning: extra command-line argument "2021-06-09" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jun 9 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-09" ignored +psql: warning: extra command-line argument "2021-06-09" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jun 9 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-09" ignored +psql: warning: extra command-line argument "2021-06-09" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jun 9 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-09" ignored +psql: warning: extra command-line argument "2021-06-09" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jun 9 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-09" ignored +psql: warning: extra command-line argument "2021-06-09" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jun 9 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-09" ignored +psql: warning: extra command-line argument "2021-06-09" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jun 9 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-09" ignored +psql: warning: extra command-line argument "2021-06-09" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jun 9 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-09" ignored +psql: warning: extra command-line argument "2021-06-09" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jun 9 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-09" ignored +psql: warning: extra command-line argument "2021-06-09" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jun 9 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-09" ignored +psql: warning: extra command-line argument "2021-06-09" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jun 9 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-09" ignored +psql: warning: extra command-line argument "2021-06-09" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jun 9 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-09" ignored +psql: warning: extra command-line argument "2021-06-09" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jun 9 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-09" ignored +psql: warning: extra command-line argument "2021-06-09" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jun 9 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-09" ignored +psql: warning: extra command-line argument "2021-06-09" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jun 9 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-09" ignored +psql: warning: extra command-line argument "2021-06-09" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jun 9 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-09" ignored +psql: warning: extra command-line argument "2021-06-09" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jun 9 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-09" ignored +psql: warning: extra command-line argument "2021-06-09" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jun 9 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-09" ignored +psql: warning: extra command-line argument "2021-06-09" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jun 9 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-09" ignored +psql: warning: extra command-line argument "2021-06-09" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jun 9 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-09" ignored +psql: warning: extra command-line argument "2021-06-09" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jun 9 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-09" ignored +psql: warning: extra command-line argument "2021-06-09" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jun 9 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-09" ignored +psql: warning: extra command-line argument "2021-06-09" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jun 9 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-09" ignored +psql: warning: extra command-line argument "2021-06-09" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jun 10 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-10" ignored +psql: warning: extra command-line argument "2021-06-10" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jun 10 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-10" ignored +psql: warning: extra command-line argument "2021-06-10" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jun 10 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-10" ignored +psql: warning: extra command-line argument "2021-06-10" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jun 10 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-10" ignored +psql: warning: extra command-line argument "2021-06-10" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jun 10 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-10" ignored +psql: warning: extra command-line argument "2021-06-10" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jun 10 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-10" ignored +psql: warning: extra command-line argument "2021-06-10" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jun 10 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-10" ignored +psql: warning: extra command-line argument "2021-06-10" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jun 10 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-10" ignored +psql: warning: extra command-line argument "2021-06-10" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jun 10 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-10" ignored +psql: warning: extra command-line argument "2021-06-10" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jun 10 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-10" ignored +psql: warning: extra command-line argument "2021-06-10" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jun 10 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-10" ignored +psql: warning: extra command-line argument "2021-06-10" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jun 10 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-10" ignored +psql: warning: extra command-line argument "2021-06-10" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jun 10 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-10" ignored +psql: warning: extra command-line argument "2021-06-10" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jun 10 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-10" ignored +psql: warning: extra command-line argument "2021-06-10" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jun 10 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-10" ignored +psql: warning: extra command-line argument "2021-06-10" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jun 10 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-10" ignored +psql: warning: extra command-line argument "2021-06-10" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jun 10 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-10" ignored +psql: warning: extra command-line argument "2021-06-10" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jun 10 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-10" ignored +psql: warning: extra command-line argument "2021-06-10" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jun 10 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-10" ignored +psql: warning: extra command-line argument "2021-06-10" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jun 10 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-10" ignored +psql: warning: extra command-line argument "2021-06-10" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jun 10 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-10" ignored +psql: warning: extra command-line argument "2021-06-10" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jun 10 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-10" ignored +psql: warning: extra command-line argument "2021-06-10" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jun 10 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-10" ignored +psql: warning: extra command-line argument "2021-06-10" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jun 10 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-10" ignored +psql: warning: extra command-line argument "2021-06-10" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jun 11 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-11" ignored +psql: warning: extra command-line argument "2021-06-11" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jun 11 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-11" ignored +psql: warning: extra command-line argument "2021-06-11" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jun 11 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-11" ignored +psql: warning: extra command-line argument "2021-06-11" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jun 11 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-11" ignored +psql: warning: extra command-line argument "2021-06-11" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jun 11 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-11" ignored +psql: warning: extra command-line argument "2021-06-11" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jun 11 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-11" ignored +psql: warning: extra command-line argument "2021-06-11" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jun 11 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-11" ignored +psql: warning: extra command-line argument "2021-06-11" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jun 11 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-11" ignored +psql: warning: extra command-line argument "2021-06-11" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jun 11 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-11" ignored +psql: warning: extra command-line argument "2021-06-11" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jun 11 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-11" ignored +psql: warning: extra command-line argument "2021-06-11" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jun 11 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-11" ignored +psql: warning: extra command-line argument "2021-06-11" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jun 11 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-11" ignored +psql: warning: extra command-line argument "2021-06-11" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jun 11 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-11" ignored +psql: warning: extra command-line argument "2021-06-11" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jun 11 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-11" ignored +psql: warning: extra command-line argument "2021-06-11" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jun 11 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-11" ignored +psql: warning: extra command-line argument "2021-06-11" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jun 11 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-11" ignored +psql: warning: extra command-line argument "2021-06-11" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jun 11 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-11" ignored +psql: warning: extra command-line argument "2021-06-11" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jun 11 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-11" ignored +psql: warning: extra command-line argument "2021-06-11" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jun 11 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-11" ignored +psql: warning: extra command-line argument "2021-06-11" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jun 11 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-11" ignored +psql: warning: extra command-line argument "2021-06-11" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jun 11 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-11" ignored +psql: warning: extra command-line argument "2021-06-11" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jun 11 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-11" ignored +psql: warning: extra command-line argument "2021-06-11" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jun 11 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-11" ignored +psql: warning: extra command-line argument "2021-06-11" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jun 11 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-11" ignored +psql: warning: extra command-line argument "2021-06-11" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jun 12 00:59:02 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-12" ignored +psql: warning: extra command-line argument "2021-06-12" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jun 12 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-12" ignored +psql: warning: extra command-line argument "2021-06-12" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jun 12 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-12" ignored +psql: warning: extra command-line argument "2021-06-12" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jun 12 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-12" ignored +psql: warning: extra command-line argument "2021-06-12" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jun 12 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-12" ignored +psql: warning: extra command-line argument "2021-06-12" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jun 12 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-12" ignored +psql: warning: extra command-line argument "2021-06-12" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jun 12 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-12" ignored +psql: warning: extra command-line argument "2021-06-12" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jun 12 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-12" ignored +psql: warning: extra command-line argument "2021-06-12" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jun 12 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-12" ignored +psql: warning: extra command-line argument "2021-06-12" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jun 12 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-12" ignored +psql: warning: extra command-line argument "2021-06-12" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jun 12 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-12" ignored +psql: warning: extra command-line argument "2021-06-12" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jun 12 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-12" ignored +psql: warning: extra command-line argument "2021-06-12" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jun 12 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-12" ignored +psql: warning: extra command-line argument "2021-06-12" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jun 12 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-12" ignored +psql: warning: extra command-line argument "2021-06-12" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jun 12 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-12" ignored +psql: warning: extra command-line argument "2021-06-12" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jun 12 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-12" ignored +psql: warning: extra command-line argument "2021-06-12" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jun 12 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-12" ignored +psql: warning: extra command-line argument "2021-06-12" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jun 12 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-12" ignored +psql: warning: extra command-line argument "2021-06-12" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jun 12 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-12" ignored +psql: warning: extra command-line argument "2021-06-12" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jun 12 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-12" ignored +psql: warning: extra command-line argument "2021-06-12" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jun 12 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-12" ignored +psql: warning: extra command-line argument "2021-06-12" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jun 12 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-12" ignored +psql: warning: extra command-line argument "2021-06-12" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jun 12 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-12" ignored +psql: warning: extra command-line argument "2021-06-12" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jun 12 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-12" ignored +psql: warning: extra command-line argument "2021-06-12" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jun 13 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-13" ignored +psql: warning: extra command-line argument "2021-06-13" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jun 13 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-13" ignored +psql: warning: extra command-line argument "2021-06-13" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jun 13 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-13" ignored +psql: warning: extra command-line argument "2021-06-13" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jun 13 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-13" ignored +psql: warning: extra command-line argument "2021-06-13" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jun 13 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-13" ignored +psql: warning: extra command-line argument "2021-06-13" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jun 13 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-13" ignored +psql: warning: extra command-line argument "2021-06-13" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jun 13 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-13" ignored +psql: warning: extra command-line argument "2021-06-13" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jun 13 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-13" ignored +psql: warning: extra command-line argument "2021-06-13" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jun 13 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-13" ignored +psql: warning: extra command-line argument "2021-06-13" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jun 13 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-13" ignored +psql: warning: extra command-line argument "2021-06-13" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jun 13 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-13" ignored +psql: warning: extra command-line argument "2021-06-13" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jun 13 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-13" ignored +psql: warning: extra command-line argument "2021-06-13" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jun 13 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-13" ignored +psql: warning: extra command-line argument "2021-06-13" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jun 13 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-13" ignored +psql: warning: extra command-line argument "2021-06-13" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jun 13 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-13" ignored +psql: warning: extra command-line argument "2021-06-13" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jun 13 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-13" ignored +psql: warning: extra command-line argument "2021-06-13" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jun 13 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-13" ignored +psql: warning: extra command-line argument "2021-06-13" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jun 13 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-13" ignored +psql: warning: extra command-line argument "2021-06-13" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jun 13 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-13" ignored +psql: warning: extra command-line argument "2021-06-13" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jun 13 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-13" ignored +psql: warning: extra command-line argument "2021-06-13" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jun 13 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-13" ignored +psql: warning: extra command-line argument "2021-06-13" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jun 13 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-13" ignored +psql: warning: extra command-line argument "2021-06-13" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jun 13 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-13" ignored +psql: warning: extra command-line argument "2021-06-13" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jun 13 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-13" ignored +psql: warning: extra command-line argument "2021-06-13" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jun 14 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-14" ignored +psql: warning: extra command-line argument "2021-06-14" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jun 14 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-14" ignored +psql: warning: extra command-line argument "2021-06-14" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jun 14 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-14" ignored +psql: warning: extra command-line argument "2021-06-14" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jun 14 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-14" ignored +psql: warning: extra command-line argument "2021-06-14" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jun 14 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-14" ignored +psql: warning: extra command-line argument "2021-06-14" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jun 14 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-14" ignored +psql: warning: extra command-line argument "2021-06-14" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jun 14 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-14" ignored +psql: warning: extra command-line argument "2021-06-14" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jun 14 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-14" ignored +psql: warning: extra command-line argument "2021-06-14" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jun 14 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-14" ignored +psql: warning: extra command-line argument "2021-06-14" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jun 14 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-14" ignored +psql: warning: extra command-line argument "2021-06-14" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jun 14 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-14" ignored +psql: warning: extra command-line argument "2021-06-14" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jun 14 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-14" ignored +psql: warning: extra command-line argument "2021-06-14" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jun 14 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-14" ignored +psql: warning: extra command-line argument "2021-06-14" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jun 14 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-14" ignored +psql: warning: extra command-line argument "2021-06-14" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jun 14 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-14" ignored +psql: warning: extra command-line argument "2021-06-14" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jun 14 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-14" ignored +psql: warning: extra command-line argument "2021-06-14" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jun 14 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-14" ignored +psql: warning: extra command-line argument "2021-06-14" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jun 14 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-14" ignored +psql: warning: extra command-line argument "2021-06-14" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jun 14 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-14" ignored +psql: warning: extra command-line argument "2021-06-14" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jun 14 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-14" ignored +psql: warning: extra command-line argument "2021-06-14" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jun 14 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-14" ignored +psql: warning: extra command-line argument "2021-06-14" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jun 14 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-14" ignored +psql: warning: extra command-line argument "2021-06-14" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jun 14 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-14" ignored +psql: warning: extra command-line argument "2021-06-14" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jun 14 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-14" ignored +psql: warning: extra command-line argument "2021-06-14" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jun 15 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-15" ignored +psql: warning: extra command-line argument "2021-06-15" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jun 15 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-15" ignored +psql: warning: extra command-line argument "2021-06-15" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jun 15 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-15" ignored +psql: warning: extra command-line argument "2021-06-15" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jun 15 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-15" ignored +psql: warning: extra command-line argument "2021-06-15" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jun 15 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-15" ignored +psql: warning: extra command-line argument "2021-06-15" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jun 15 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-15" ignored +psql: warning: extra command-line argument "2021-06-15" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jun 15 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-15" ignored +psql: warning: extra command-line argument "2021-06-15" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jun 15 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-15" ignored +psql: warning: extra command-line argument "2021-06-15" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jun 15 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-15" ignored +psql: warning: extra command-line argument "2021-06-15" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jun 15 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-15" ignored +psql: warning: extra command-line argument "2021-06-15" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jun 15 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-15" ignored +psql: warning: extra command-line argument "2021-06-15" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jun 15 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-15" ignored +psql: warning: extra command-line argument "2021-06-15" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jun 15 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-15" ignored +psql: warning: extra command-line argument "2021-06-15" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jun 15 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-15" ignored +psql: warning: extra command-line argument "2021-06-15" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jun 15 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-15" ignored +psql: warning: extra command-line argument "2021-06-15" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jun 15 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-15" ignored +psql: warning: extra command-line argument "2021-06-15" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jun 15 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-15" ignored +psql: warning: extra command-line argument "2021-06-15" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jun 15 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-15" ignored +psql: warning: extra command-line argument "2021-06-15" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jun 15 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-15" ignored +psql: warning: extra command-line argument "2021-06-15" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jun 15 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-15" ignored +psql: warning: extra command-line argument "2021-06-15" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jun 15 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-15" ignored +psql: warning: extra command-line argument "2021-06-15" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jun 15 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-15" ignored +psql: warning: extra command-line argument "2021-06-15" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jun 15 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-15" ignored +psql: warning: extra command-line argument "2021-06-15" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jun 15 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-15" ignored +psql: warning: extra command-line argument "2021-06-15" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jun 16 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-16" ignored +psql: warning: extra command-line argument "2021-06-16" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jun 16 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-16" ignored +psql: warning: extra command-line argument "2021-06-16" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jun 16 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-16" ignored +psql: warning: extra command-line argument "2021-06-16" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jun 16 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-16" ignored +psql: warning: extra command-line argument "2021-06-16" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jun 16 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-16" ignored +psql: warning: extra command-line argument "2021-06-16" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jun 16 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-16" ignored +psql: warning: extra command-line argument "2021-06-16" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jun 16 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-16" ignored +psql: warning: extra command-line argument "2021-06-16" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jun 16 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-16" ignored +psql: warning: extra command-line argument "2021-06-16" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jun 16 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-16" ignored +psql: warning: extra command-line argument "2021-06-16" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jun 16 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-16" ignored +psql: warning: extra command-line argument "2021-06-16" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jun 16 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-16" ignored +psql: warning: extra command-line argument "2021-06-16" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jun 16 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-16" ignored +psql: warning: extra command-line argument "2021-06-16" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jun 16 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-16" ignored +psql: warning: extra command-line argument "2021-06-16" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jun 16 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-16" ignored +psql: warning: extra command-line argument "2021-06-16" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jun 16 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-16" ignored +psql: warning: extra command-line argument "2021-06-16" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jun 16 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-16" ignored +psql: warning: extra command-line argument "2021-06-16" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jun 16 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-16" ignored +psql: warning: extra command-line argument "2021-06-16" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jun 16 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-16" ignored +psql: warning: extra command-line argument "2021-06-16" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jun 16 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-16" ignored +psql: warning: extra command-line argument "2021-06-16" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jun 16 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-16" ignored +psql: warning: extra command-line argument "2021-06-16" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jun 16 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-16" ignored +psql: warning: extra command-line argument "2021-06-16" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jun 16 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-16" ignored +psql: warning: extra command-line argument "2021-06-16" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jun 16 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-16" ignored +psql: warning: extra command-line argument "2021-06-16" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jun 16 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-16" ignored +psql: warning: extra command-line argument "2021-06-16" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jun 17 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-17" ignored +psql: warning: extra command-line argument "2021-06-17" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jun 17 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-17" ignored +psql: warning: extra command-line argument "2021-06-17" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jun 17 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-17" ignored +psql: warning: extra command-line argument "2021-06-17" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jun 17 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-17" ignored +psql: warning: extra command-line argument "2021-06-17" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jun 17 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-17" ignored +psql: warning: extra command-line argument "2021-06-17" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jun 17 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-17" ignored +psql: warning: extra command-line argument "2021-06-17" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jun 17 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-17" ignored +psql: warning: extra command-line argument "2021-06-17" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jun 17 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-17" ignored +psql: warning: extra command-line argument "2021-06-17" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jun 17 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-17" ignored +psql: warning: extra command-line argument "2021-06-17" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jun 17 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-17" ignored +psql: warning: extra command-line argument "2021-06-17" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jun 17 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-17" ignored +psql: warning: extra command-line argument "2021-06-17" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jun 17 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-17" ignored +psql: warning: extra command-line argument "2021-06-17" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jun 17 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-17" ignored +psql: warning: extra command-line argument "2021-06-17" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jun 17 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-17" ignored +psql: warning: extra command-line argument "2021-06-17" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jun 17 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-17" ignored +psql: warning: extra command-line argument "2021-06-17" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jun 17 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-17" ignored +psql: warning: extra command-line argument "2021-06-17" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jun 17 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-17" ignored +psql: warning: extra command-line argument "2021-06-17" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jun 17 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-17" ignored +psql: warning: extra command-line argument "2021-06-17" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jun 17 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-17" ignored +psql: warning: extra command-line argument "2021-06-17" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jun 17 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-17" ignored +psql: warning: extra command-line argument "2021-06-17" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jun 17 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-17" ignored +psql: warning: extra command-line argument "2021-06-17" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jun 17 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-17" ignored +psql: warning: extra command-line argument "2021-06-17" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jun 17 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-17" ignored +psql: warning: extra command-line argument "2021-06-17" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jun 17 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-17" ignored +psql: warning: extra command-line argument "2021-06-17" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jun 18 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-18" ignored +psql: warning: extra command-line argument "2021-06-18" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jun 18 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-18" ignored +psql: warning: extra command-line argument "2021-06-18" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jun 18 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-18" ignored +psql: warning: extra command-line argument "2021-06-18" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jun 18 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-18" ignored +psql: warning: extra command-line argument "2021-06-18" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jun 18 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-18" ignored +psql: warning: extra command-line argument "2021-06-18" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jun 18 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-18" ignored +psql: warning: extra command-line argument "2021-06-18" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jun 18 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-18" ignored +psql: warning: extra command-line argument "2021-06-18" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jun 18 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-18" ignored +psql: warning: extra command-line argument "2021-06-18" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jun 18 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-18" ignored +psql: warning: extra command-line argument "2021-06-18" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jun 18 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-18" ignored +psql: warning: extra command-line argument "2021-06-18" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jun 18 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-18" ignored +psql: warning: extra command-line argument "2021-06-18" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jun 18 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-18" ignored +psql: warning: extra command-line argument "2021-06-18" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jun 18 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-18" ignored +psql: warning: extra command-line argument "2021-06-18" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jun 18 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-18" ignored +psql: warning: extra command-line argument "2021-06-18" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jun 18 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-18" ignored +psql: warning: extra command-line argument "2021-06-18" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jun 18 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-18" ignored +psql: warning: extra command-line argument "2021-06-18" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jun 18 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-18" ignored +psql: warning: extra command-line argument "2021-06-18" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jun 18 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-18" ignored +psql: warning: extra command-line argument "2021-06-18" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jun 18 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-18" ignored +psql: warning: extra command-line argument "2021-06-18" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jun 18 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-18" ignored +psql: warning: extra command-line argument "2021-06-18" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jun 18 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-18" ignored +psql: warning: extra command-line argument "2021-06-18" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jun 18 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-18" ignored +psql: warning: extra command-line argument "2021-06-18" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jun 18 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-18" ignored +psql: warning: extra command-line argument "2021-06-18" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jun 18 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-18" ignored +psql: warning: extra command-line argument "2021-06-18" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jun 19 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-19" ignored +psql: warning: extra command-line argument "2021-06-19" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jun 19 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-19" ignored +psql: warning: extra command-line argument "2021-06-19" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jun 19 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-19" ignored +psql: warning: extra command-line argument "2021-06-19" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jun 19 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-19" ignored +psql: warning: extra command-line argument "2021-06-19" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jun 19 04:59:02 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-19" ignored +psql: warning: extra command-line argument "2021-06-19" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jun 19 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-19" ignored +psql: warning: extra command-line argument "2021-06-19" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jun 19 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-19" ignored +psql: warning: extra command-line argument "2021-06-19" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jun 19 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-19" ignored +psql: warning: extra command-line argument "2021-06-19" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jun 19 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-19" ignored +psql: warning: extra command-line argument "2021-06-19" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jun 19 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-19" ignored +psql: warning: extra command-line argument "2021-06-19" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jun 19 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-19" ignored +psql: warning: extra command-line argument "2021-06-19" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jun 19 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-19" ignored +psql: warning: extra command-line argument "2021-06-19" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jun 19 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-19" ignored +psql: warning: extra command-line argument "2021-06-19" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jun 19 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-19" ignored +psql: warning: extra command-line argument "2021-06-19" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jun 19 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-19" ignored +psql: warning: extra command-line argument "2021-06-19" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jun 19 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-19" ignored +psql: warning: extra command-line argument "2021-06-19" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jun 19 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-19" ignored +psql: warning: extra command-line argument "2021-06-19" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jun 19 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-19" ignored +psql: warning: extra command-line argument "2021-06-19" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jun 19 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-19" ignored +psql: warning: extra command-line argument "2021-06-19" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jun 19 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-19" ignored +psql: warning: extra command-line argument "2021-06-19" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jun 19 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-19" ignored +psql: warning: extra command-line argument "2021-06-19" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jun 19 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-19" ignored +psql: warning: extra command-line argument "2021-06-19" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jun 19 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-19" ignored +psql: warning: extra command-line argument "2021-06-19" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jun 19 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-19" ignored +psql: warning: extra command-line argument "2021-06-19" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jun 20 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-20" ignored +psql: warning: extra command-line argument "2021-06-20" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jun 20 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-20" ignored +psql: warning: extra command-line argument "2021-06-20" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jun 20 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-20" ignored +psql: warning: extra command-line argument "2021-06-20" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jun 20 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-20" ignored +psql: warning: extra command-line argument "2021-06-20" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jun 20 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-20" ignored +psql: warning: extra command-line argument "2021-06-20" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jun 20 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-20" ignored +psql: warning: extra command-line argument "2021-06-20" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jun 20 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-20" ignored +psql: warning: extra command-line argument "2021-06-20" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jun 20 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-20" ignored +psql: warning: extra command-line argument "2021-06-20" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jun 20 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-20" ignored +psql: warning: extra command-line argument "2021-06-20" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jun 20 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-20" ignored +psql: warning: extra command-line argument "2021-06-20" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jun 20 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-20" ignored +psql: warning: extra command-line argument "2021-06-20" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jun 20 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-20" ignored +psql: warning: extra command-line argument "2021-06-20" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jun 20 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-20" ignored +psql: warning: extra command-line argument "2021-06-20" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jun 20 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-20" ignored +psql: warning: extra command-line argument "2021-06-20" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jun 20 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-20" ignored +psql: warning: extra command-line argument "2021-06-20" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jun 20 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-20" ignored +psql: warning: extra command-line argument "2021-06-20" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jun 20 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-20" ignored +psql: warning: extra command-line argument "2021-06-20" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jun 20 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-20" ignored +psql: warning: extra command-line argument "2021-06-20" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jun 20 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-20" ignored +psql: warning: extra command-line argument "2021-06-20" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jun 20 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-20" ignored +psql: warning: extra command-line argument "2021-06-20" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jun 20 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-20" ignored +psql: warning: extra command-line argument "2021-06-20" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jun 20 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-20" ignored +psql: warning: extra command-line argument "2021-06-20" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jun 20 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-20" ignored +psql: warning: extra command-line argument "2021-06-20" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jun 20 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-20" ignored +psql: warning: extra command-line argument "2021-06-20" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jun 21 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-21" ignored +psql: warning: extra command-line argument "2021-06-21" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jun 21 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-21" ignored +psql: warning: extra command-line argument "2021-06-21" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jun 21 02:59:02 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-21" ignored +psql: warning: extra command-line argument "2021-06-21" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jun 21 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-21" ignored +psql: warning: extra command-line argument "2021-06-21" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jun 21 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-21" ignored +psql: warning: extra command-line argument "2021-06-21" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jun 21 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-21" ignored +psql: warning: extra command-line argument "2021-06-21" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jun 21 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-21" ignored +psql: warning: extra command-line argument "2021-06-21" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jun 21 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-21" ignored +psql: warning: extra command-line argument "2021-06-21" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jun 21 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-21" ignored +psql: warning: extra command-line argument "2021-06-21" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jun 21 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-21" ignored +psql: warning: extra command-line argument "2021-06-21" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jun 21 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-21" ignored +psql: warning: extra command-line argument "2021-06-21" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jun 21 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-21" ignored +psql: warning: extra command-line argument "2021-06-21" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jun 21 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-21" ignored +psql: warning: extra command-line argument "2021-06-21" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jun 21 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-21" ignored +psql: warning: extra command-line argument "2021-06-21" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jun 21 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-21" ignored +psql: warning: extra command-line argument "2021-06-21" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jun 21 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-21" ignored +psql: warning: extra command-line argument "2021-06-21" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jun 21 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-21" ignored +psql: warning: extra command-line argument "2021-06-21" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jun 21 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-21" ignored +psql: warning: extra command-line argument "2021-06-21" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jun 21 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-21" ignored +psql: warning: extra command-line argument "2021-06-21" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jun 21 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-21" ignored +psql: warning: extra command-line argument "2021-06-21" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jun 21 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-21" ignored +psql: warning: extra command-line argument "2021-06-21" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jun 21 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-21" ignored +psql: warning: extra command-line argument "2021-06-21" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jun 21 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-21" ignored +psql: warning: extra command-line argument "2021-06-21" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jun 21 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-21" ignored +psql: warning: extra command-line argument "2021-06-21" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jun 22 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-22" ignored +psql: warning: extra command-line argument "2021-06-22" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jun 22 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-22" ignored +psql: warning: extra command-line argument "2021-06-22" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jun 22 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-22" ignored +psql: warning: extra command-line argument "2021-06-22" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jun 22 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-22" ignored +psql: warning: extra command-line argument "2021-06-22" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jun 22 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-22" ignored +psql: warning: extra command-line argument "2021-06-22" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jun 22 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-22" ignored +psql: warning: extra command-line argument "2021-06-22" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jun 22 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-22" ignored +psql: warning: extra command-line argument "2021-06-22" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jun 22 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-22" ignored +psql: warning: extra command-line argument "2021-06-22" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jun 22 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-22" ignored +psql: warning: extra command-line argument "2021-06-22" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jun 22 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-22" ignored +psql: warning: extra command-line argument "2021-06-22" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jun 22 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-22" ignored +psql: warning: extra command-line argument "2021-06-22" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jun 22 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-22" ignored +psql: warning: extra command-line argument "2021-06-22" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jun 22 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-22" ignored +psql: warning: extra command-line argument "2021-06-22" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jun 22 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-22" ignored +psql: warning: extra command-line argument "2021-06-22" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jun 22 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-22" ignored +psql: warning: extra command-line argument "2021-06-22" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jun 22 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-22" ignored +psql: warning: extra command-line argument "2021-06-22" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jun 22 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-22" ignored +psql: warning: extra command-line argument "2021-06-22" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jun 22 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-22" ignored +psql: warning: extra command-line argument "2021-06-22" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jun 22 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-22" ignored +psql: warning: extra command-line argument "2021-06-22" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jun 22 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-22" ignored +psql: warning: extra command-line argument "2021-06-22" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jun 22 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-22" ignored +psql: warning: extra command-line argument "2021-06-22" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jun 22 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-22" ignored +psql: warning: extra command-line argument "2021-06-22" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jun 22 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-22" ignored +psql: warning: extra command-line argument "2021-06-22" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jun 22 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-22" ignored +psql: warning: extra command-line argument "2021-06-22" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jun 23 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-23" ignored +psql: warning: extra command-line argument "2021-06-23" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jun 23 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-23" ignored +psql: warning: extra command-line argument "2021-06-23" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jun 23 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-23" ignored +psql: warning: extra command-line argument "2021-06-23" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jun 23 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-23" ignored +psql: warning: extra command-line argument "2021-06-23" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jun 23 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-23" ignored +psql: warning: extra command-line argument "2021-06-23" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jun 23 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-23" ignored +psql: warning: extra command-line argument "2021-06-23" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jun 23 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-23" ignored +psql: warning: extra command-line argument "2021-06-23" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jun 23 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-23" ignored +psql: warning: extra command-line argument "2021-06-23" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jun 23 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-23" ignored +psql: warning: extra command-line argument "2021-06-23" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jun 23 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-23" ignored +psql: warning: extra command-line argument "2021-06-23" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jun 23 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-23" ignored +psql: warning: extra command-line argument "2021-06-23" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jun 23 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-23" ignored +psql: warning: extra command-line argument "2021-06-23" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jun 23 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-23" ignored +psql: warning: extra command-line argument "2021-06-23" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jun 23 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-23" ignored +psql: warning: extra command-line argument "2021-06-23" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jun 23 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-23" ignored +psql: warning: extra command-line argument "2021-06-23" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jun 23 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-23" ignored +psql: warning: extra command-line argument "2021-06-23" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jun 23 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-23" ignored +psql: warning: extra command-line argument "2021-06-23" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jun 23 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-23" ignored +psql: warning: extra command-line argument "2021-06-23" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jun 23 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-23" ignored +psql: warning: extra command-line argument "2021-06-23" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jun 23 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-23" ignored +psql: warning: extra command-line argument "2021-06-23" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jun 23 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-23" ignored +psql: warning: extra command-line argument "2021-06-23" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jun 23 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-23" ignored +psql: warning: extra command-line argument "2021-06-23" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jun 23 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-23" ignored +psql: warning: extra command-line argument "2021-06-23" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jun 23 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-23" ignored +psql: warning: extra command-line argument "2021-06-23" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jun 24 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-24" ignored +psql: warning: extra command-line argument "2021-06-24" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jun 24 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-24" ignored +psql: warning: extra command-line argument "2021-06-24" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jun 24 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-24" ignored +psql: warning: extra command-line argument "2021-06-24" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jun 24 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-24" ignored +psql: warning: extra command-line argument "2021-06-24" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jun 24 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-24" ignored +psql: warning: extra command-line argument "2021-06-24" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jun 24 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-24" ignored +psql: warning: extra command-line argument "2021-06-24" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jun 24 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-24" ignored +psql: warning: extra command-line argument "2021-06-24" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jun 24 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-24" ignored +psql: warning: extra command-line argument "2021-06-24" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jun 24 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-24" ignored +psql: warning: extra command-line argument "2021-06-24" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jun 24 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-24" ignored +psql: warning: extra command-line argument "2021-06-24" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jun 24 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-24" ignored +psql: warning: extra command-line argument "2021-06-24" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jun 24 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-24" ignored +psql: warning: extra command-line argument "2021-06-24" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jun 24 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-24" ignored +psql: warning: extra command-line argument "2021-06-24" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jun 24 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-24" ignored +psql: warning: extra command-line argument "2021-06-24" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jun 24 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-24" ignored +psql: warning: extra command-line argument "2021-06-24" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jun 24 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-24" ignored +psql: warning: extra command-line argument "2021-06-24" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jun 24 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-24" ignored +psql: warning: extra command-line argument "2021-06-24" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jun 24 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-24" ignored +psql: warning: extra command-line argument "2021-06-24" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jun 24 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-24" ignored +psql: warning: extra command-line argument "2021-06-24" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jun 24 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-24" ignored +psql: warning: extra command-line argument "2021-06-24" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jun 24 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-24" ignored +psql: warning: extra command-line argument "2021-06-24" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jun 24 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-24" ignored +psql: warning: extra command-line argument "2021-06-24" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jun 24 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-24" ignored +psql: warning: extra command-line argument "2021-06-24" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jun 24 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-24" ignored +psql: warning: extra command-line argument "2021-06-24" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jun 25 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-25" ignored +psql: warning: extra command-line argument "2021-06-25" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jun 25 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-25" ignored +psql: warning: extra command-line argument "2021-06-25" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jun 25 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-25" ignored +psql: warning: extra command-line argument "2021-06-25" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jun 25 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-25" ignored +psql: warning: extra command-line argument "2021-06-25" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jun 25 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-25" ignored +psql: warning: extra command-line argument "2021-06-25" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jun 25 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-25" ignored +psql: warning: extra command-line argument "2021-06-25" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jun 25 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-25" ignored +psql: warning: extra command-line argument "2021-06-25" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jun 25 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-25" ignored +psql: warning: extra command-line argument "2021-06-25" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jun 25 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-25" ignored +psql: warning: extra command-line argument "2021-06-25" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jun 25 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-25" ignored +psql: warning: extra command-line argument "2021-06-25" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jun 25 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-25" ignored +psql: warning: extra command-line argument "2021-06-25" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jun 25 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-25" ignored +psql: warning: extra command-line argument "2021-06-25" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jun 25 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-25" ignored +psql: warning: extra command-line argument "2021-06-25" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jun 25 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-25" ignored +psql: warning: extra command-line argument "2021-06-25" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jun 25 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-25" ignored +psql: warning: extra command-line argument "2021-06-25" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jun 25 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-25" ignored +psql: warning: extra command-line argument "2021-06-25" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jun 25 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-25" ignored +psql: warning: extra command-line argument "2021-06-25" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jun 25 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-25" ignored +psql: warning: extra command-line argument "2021-06-25" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jun 25 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-25" ignored +psql: warning: extra command-line argument "2021-06-25" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jun 25 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-25" ignored +psql: warning: extra command-line argument "2021-06-25" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jun 25 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-25" ignored +psql: warning: extra command-line argument "2021-06-25" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jun 25 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-25" ignored +psql: warning: extra command-line argument "2021-06-25" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jun 25 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-25" ignored +psql: warning: extra command-line argument "2021-06-25" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jun 25 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-25" ignored +psql: warning: extra command-line argument "2021-06-25" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jun 26 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-26" ignored +psql: warning: extra command-line argument "2021-06-26" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jun 26 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-26" ignored +psql: warning: extra command-line argument "2021-06-26" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jun 26 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-26" ignored +psql: warning: extra command-line argument "2021-06-26" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jun 26 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-26" ignored +psql: warning: extra command-line argument "2021-06-26" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jun 26 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-26" ignored +psql: warning: extra command-line argument "2021-06-26" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jun 26 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-26" ignored +psql: warning: extra command-line argument "2021-06-26" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jun 26 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-26" ignored +psql: warning: extra command-line argument "2021-06-26" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jun 26 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-26" ignored +psql: warning: extra command-line argument "2021-06-26" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jun 26 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-26" ignored +psql: warning: extra command-line argument "2021-06-26" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jun 26 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-26" ignored +psql: warning: extra command-line argument "2021-06-26" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jun 26 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-26" ignored +psql: warning: extra command-line argument "2021-06-26" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jun 26 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-26" ignored +psql: warning: extra command-line argument "2021-06-26" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jun 26 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-26" ignored +psql: warning: extra command-line argument "2021-06-26" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jun 26 13:59:02 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-26" ignored +psql: warning: extra command-line argument "2021-06-26" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jun 26 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-26" ignored +psql: warning: extra command-line argument "2021-06-26" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jun 26 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-26" ignored +psql: warning: extra command-line argument "2021-06-26" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jun 26 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-26" ignored +psql: warning: extra command-line argument "2021-06-26" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jun 26 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-26" ignored +psql: warning: extra command-line argument "2021-06-26" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jun 26 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-26" ignored +psql: warning: extra command-line argument "2021-06-26" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jun 26 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-26" ignored +psql: warning: extra command-line argument "2021-06-26" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jun 26 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-26" ignored +psql: warning: extra command-line argument "2021-06-26" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jun 26 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-26" ignored +psql: warning: extra command-line argument "2021-06-26" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jun 26 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-26" ignored +psql: warning: extra command-line argument "2021-06-26" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jun 26 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-26" ignored +psql: warning: extra command-line argument "2021-06-26" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jun 27 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-27" ignored +psql: warning: extra command-line argument "2021-06-27" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jun 27 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-27" ignored +psql: warning: extra command-line argument "2021-06-27" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jun 27 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-27" ignored +psql: warning: extra command-line argument "2021-06-27" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jun 27 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-27" ignored +psql: warning: extra command-line argument "2021-06-27" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jun 27 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-27" ignored +psql: warning: extra command-line argument "2021-06-27" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jun 27 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-27" ignored +psql: warning: extra command-line argument "2021-06-27" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jun 27 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-27" ignored +psql: warning: extra command-line argument "2021-06-27" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jun 27 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-27" ignored +psql: warning: extra command-line argument "2021-06-27" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jun 27 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-27" ignored +psql: warning: extra command-line argument "2021-06-27" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jun 27 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-27" ignored +psql: warning: extra command-line argument "2021-06-27" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jun 27 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-27" ignored +psql: warning: extra command-line argument "2021-06-27" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jun 27 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-27" ignored +psql: warning: extra command-line argument "2021-06-27" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jun 27 12:59:02 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-27" ignored +psql: warning: extra command-line argument "2021-06-27" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jun 27 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-27" ignored +psql: warning: extra command-line argument "2021-06-27" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jun 27 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-27" ignored +psql: warning: extra command-line argument "2021-06-27" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jun 27 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-27" ignored +psql: warning: extra command-line argument "2021-06-27" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jun 27 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-27" ignored +psql: warning: extra command-line argument "2021-06-27" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jun 27 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-27" ignored +psql: warning: extra command-line argument "2021-06-27" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jun 27 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-27" ignored +psql: warning: extra command-line argument "2021-06-27" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jun 27 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-27" ignored +psql: warning: extra command-line argument "2021-06-27" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jun 27 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-27" ignored +psql: warning: extra command-line argument "2021-06-27" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jun 27 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-27" ignored +psql: warning: extra command-line argument "2021-06-27" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jun 27 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-27" ignored +psql: warning: extra command-line argument "2021-06-27" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jun 27 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-27" ignored +psql: warning: extra command-line argument "2021-06-27" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jun 28 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-28" ignored +psql: warning: extra command-line argument "2021-06-28" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jun 28 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-28" ignored +psql: warning: extra command-line argument "2021-06-28" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jun 28 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-28" ignored +psql: warning: extra command-line argument "2021-06-28" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jun 28 03:59:02 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-28" ignored +psql: warning: extra command-line argument "2021-06-28" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jun 28 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-28" ignored +psql: warning: extra command-line argument "2021-06-28" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jun 28 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-28" ignored +psql: warning: extra command-line argument "2021-06-28" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jun 28 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-28" ignored +psql: warning: extra command-line argument "2021-06-28" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jun 28 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-28" ignored +psql: warning: extra command-line argument "2021-06-28" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jun 28 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-28" ignored +psql: warning: extra command-line argument "2021-06-28" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jun 28 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-28" ignored +psql: warning: extra command-line argument "2021-06-28" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jun 28 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-28" ignored +psql: warning: extra command-line argument "2021-06-28" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jun 28 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-28" ignored +psql: warning: extra command-line argument "2021-06-28" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jun 28 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-28" ignored +psql: warning: extra command-line argument "2021-06-28" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jun 28 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-28" ignored +psql: warning: extra command-line argument "2021-06-28" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jun 28 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-28" ignored +psql: warning: extra command-line argument "2021-06-28" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jun 28 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-28" ignored +psql: warning: extra command-line argument "2021-06-28" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jun 28 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-28" ignored +psql: warning: extra command-line argument "2021-06-28" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jun 28 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-28" ignored +psql: warning: extra command-line argument "2021-06-28" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jun 28 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-28" ignored +psql: warning: extra command-line argument "2021-06-28" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jun 28 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-28" ignored +psql: warning: extra command-line argument "2021-06-28" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jun 28 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-28" ignored +psql: warning: extra command-line argument "2021-06-28" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jun 28 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-28" ignored +psql: warning: extra command-line argument "2021-06-28" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jun 28 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-28" ignored +psql: warning: extra command-line argument "2021-06-28" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jun 28 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-28" ignored +psql: warning: extra command-line argument "2021-06-28" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jun 29 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-29" ignored +psql: warning: extra command-line argument "2021-06-29" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jun 29 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-29" ignored +psql: warning: extra command-line argument "2021-06-29" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jun 29 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-29" ignored +psql: warning: extra command-line argument "2021-06-29" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jun 29 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-29" ignored +psql: warning: extra command-line argument "2021-06-29" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jun 29 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-29" ignored +psql: warning: extra command-line argument "2021-06-29" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jun 29 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-29" ignored +psql: warning: extra command-line argument "2021-06-29" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jun 29 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-29" ignored +psql: warning: extra command-line argument "2021-06-29" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jun 29 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-29" ignored +psql: warning: extra command-line argument "2021-06-29" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jun 29 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-29" ignored +psql: warning: extra command-line argument "2021-06-29" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jun 29 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-29" ignored +psql: warning: extra command-line argument "2021-06-29" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jun 29 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-29" ignored +psql: warning: extra command-line argument "2021-06-29" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jun 29 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-29" ignored +psql: warning: extra command-line argument "2021-06-29" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jun 29 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-29" ignored +psql: warning: extra command-line argument "2021-06-29" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jun 29 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-29" ignored +psql: warning: extra command-line argument "2021-06-29" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jun 29 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-29" ignored +psql: warning: extra command-line argument "2021-06-29" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jun 29 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-29" ignored +psql: warning: extra command-line argument "2021-06-29" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jun 29 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-29" ignored +psql: warning: extra command-line argument "2021-06-29" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jun 29 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-29" ignored +psql: warning: extra command-line argument "2021-06-29" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jun 29 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-29" ignored +psql: warning: extra command-line argument "2021-06-29" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jun 29 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-29" ignored +psql: warning: extra command-line argument "2021-06-29" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jun 29 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-29" ignored +psql: warning: extra command-line argument "2021-06-29" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jun 29 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-29" ignored +psql: warning: extra command-line argument "2021-06-29" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jun 29 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-29" ignored +psql: warning: extra command-line argument "2021-06-29" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jun 29 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-29" ignored +psql: warning: extra command-line argument "2021-06-29" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jun 30 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-30" ignored +psql: warning: extra command-line argument "2021-06-30" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jun 30 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-30" ignored +psql: warning: extra command-line argument "2021-06-30" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jun 30 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-30" ignored +psql: warning: extra command-line argument "2021-06-30" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jun 30 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-30" ignored +psql: warning: extra command-line argument "2021-06-30" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jun 30 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-30" ignored +psql: warning: extra command-line argument "2021-06-30" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jun 30 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-30" ignored +psql: warning: extra command-line argument "2021-06-30" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jun 30 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-30" ignored +psql: warning: extra command-line argument "2021-06-30" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jun 30 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-30" ignored +psql: warning: extra command-line argument "2021-06-30" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jun 30 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-30" ignored +psql: warning: extra command-line argument "2021-06-30" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jun 30 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-30" ignored +psql: warning: extra command-line argument "2021-06-30" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jun 30 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-30" ignored +psql: warning: extra command-line argument "2021-06-30" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jun 30 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-30" ignored +psql: warning: extra command-line argument "2021-06-30" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jun 30 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-30" ignored +psql: warning: extra command-line argument "2021-06-30" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jun 30 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-30" ignored +psql: warning: extra command-line argument "2021-06-30" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jun 30 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-30" ignored +psql: warning: extra command-line argument "2021-06-30" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jun 30 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-30" ignored +psql: warning: extra command-line argument "2021-06-30" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jun 30 16:59:02 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-30" ignored +psql: warning: extra command-line argument "2021-06-30" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jun 30 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-30" ignored +psql: warning: extra command-line argument "2021-06-30" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jun 30 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-30" ignored +psql: warning: extra command-line argument "2021-06-30" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jun 30 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-30" ignored +psql: warning: extra command-line argument "2021-06-30" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jun 30 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-30" ignored +psql: warning: extra command-line argument "2021-06-30" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jun 30 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-30" ignored +psql: warning: extra command-line argument "2021-06-30" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jun 30 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-30" ignored +psql: warning: extra command-line argument "2021-06-30" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jun 30 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-06-30" ignored +psql: warning: extra command-line argument "2021-06-30" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jul 1 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-01" ignored +psql: warning: extra command-line argument "2021-07-01" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jul 1 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-01" ignored +psql: warning: extra command-line argument "2021-07-01" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jul 1 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-01" ignored +psql: warning: extra command-line argument "2021-07-01" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jul 1 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-01" ignored +psql: warning: extra command-line argument "2021-07-01" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jul 1 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-01" ignored +psql: warning: extra command-line argument "2021-07-01" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jul 1 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-01" ignored +psql: warning: extra command-line argument "2021-07-01" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jul 1 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-01" ignored +psql: warning: extra command-line argument "2021-07-01" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jul 1 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-01" ignored +psql: warning: extra command-line argument "2021-07-01" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jul 1 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-01" ignored +psql: warning: extra command-line argument "2021-07-01" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jul 1 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-01" ignored +psql: warning: extra command-line argument "2021-07-01" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jul 1 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-01" ignored +psql: warning: extra command-line argument "2021-07-01" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jul 1 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-01" ignored +psql: warning: extra command-line argument "2021-07-01" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jul 1 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-01" ignored +psql: warning: extra command-line argument "2021-07-01" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jul 1 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-01" ignored +psql: warning: extra command-line argument "2021-07-01" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jul 1 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-01" ignored +psql: warning: extra command-line argument "2021-07-01" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jul 1 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-01" ignored +psql: warning: extra command-line argument "2021-07-01" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jul 1 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-01" ignored +psql: warning: extra command-line argument "2021-07-01" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jul 1 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-01" ignored +psql: warning: extra command-line argument "2021-07-01" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jul 1 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-01" ignored +psql: warning: extra command-line argument "2021-07-01" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jul 1 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-01" ignored +psql: warning: extra command-line argument "2021-07-01" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jul 1 20:59:02 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-01" ignored +psql: warning: extra command-line argument "2021-07-01" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jul 1 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-01" ignored +psql: warning: extra command-line argument "2021-07-01" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jul 1 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-01" ignored +psql: warning: extra command-line argument "2021-07-01" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jul 1 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-01" ignored +psql: warning: extra command-line argument "2021-07-01" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jul 2 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-02" ignored +psql: warning: extra command-line argument "2021-07-02" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jul 2 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-02" ignored +psql: warning: extra command-line argument "2021-07-02" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jul 2 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-02" ignored +psql: warning: extra command-line argument "2021-07-02" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jul 2 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-02" ignored +psql: warning: extra command-line argument "2021-07-02" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jul 2 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-02" ignored +psql: warning: extra command-line argument "2021-07-02" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jul 2 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-02" ignored +psql: warning: extra command-line argument "2021-07-02" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jul 2 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-02" ignored +psql: warning: extra command-line argument "2021-07-02" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jul 2 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-02" ignored +psql: warning: extra command-line argument "2021-07-02" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jul 2 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-02" ignored +psql: warning: extra command-line argument "2021-07-02" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jul 2 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-02" ignored +psql: warning: extra command-line argument "2021-07-02" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jul 2 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-02" ignored +psql: warning: extra command-line argument "2021-07-02" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jul 2 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-02" ignored +psql: warning: extra command-line argument "2021-07-02" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jul 2 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-02" ignored +psql: warning: extra command-line argument "2021-07-02" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jul 2 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-02" ignored +psql: warning: extra command-line argument "2021-07-02" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jul 2 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-02" ignored +psql: warning: extra command-line argument "2021-07-02" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jul 2 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-02" ignored +psql: warning: extra command-line argument "2021-07-02" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jul 2 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-02" ignored +psql: warning: extra command-line argument "2021-07-02" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jul 2 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-02" ignored +psql: warning: extra command-line argument "2021-07-02" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jul 2 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-02" ignored +psql: warning: extra command-line argument "2021-07-02" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jul 2 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-02" ignored +psql: warning: extra command-line argument "2021-07-02" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jul 2 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-02" ignored +psql: warning: extra command-line argument "2021-07-02" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jul 2 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-02" ignored +psql: warning: extra command-line argument "2021-07-02" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jul 2 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-02" ignored +psql: warning: extra command-line argument "2021-07-02" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jul 2 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-02" ignored +psql: warning: extra command-line argument "2021-07-02" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jul 3 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-03" ignored +psql: warning: extra command-line argument "2021-07-03" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jul 3 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-03" ignored +psql: warning: extra command-line argument "2021-07-03" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jul 3 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-03" ignored +psql: warning: extra command-line argument "2021-07-03" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jul 3 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-03" ignored +psql: warning: extra command-line argument "2021-07-03" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jul 3 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-03" ignored +psql: warning: extra command-line argument "2021-07-03" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jul 3 05:59:02 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-03" ignored +psql: warning: extra command-line argument "2021-07-03" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jul 3 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-03" ignored +psql: warning: extra command-line argument "2021-07-03" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jul 3 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-03" ignored +psql: warning: extra command-line argument "2021-07-03" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jul 3 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-03" ignored +psql: warning: extra command-line argument "2021-07-03" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jul 3 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-03" ignored +psql: warning: extra command-line argument "2021-07-03" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jul 3 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-03" ignored +psql: warning: extra command-line argument "2021-07-03" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jul 3 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-03" ignored +psql: warning: extra command-line argument "2021-07-03" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jul 3 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-03" ignored +psql: warning: extra command-line argument "2021-07-03" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jul 3 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-03" ignored +psql: warning: extra command-line argument "2021-07-03" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jul 3 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-03" ignored +psql: warning: extra command-line argument "2021-07-03" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jul 3 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-03" ignored +psql: warning: extra command-line argument "2021-07-03" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jul 3 16:59:02 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-03" ignored +psql: warning: extra command-line argument "2021-07-03" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jul 3 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-03" ignored +psql: warning: extra command-line argument "2021-07-03" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jul 3 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-03" ignored +psql: warning: extra command-line argument "2021-07-03" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jul 3 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-03" ignored +psql: warning: extra command-line argument "2021-07-03" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jul 3 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-03" ignored +psql: warning: extra command-line argument "2021-07-03" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jul 3 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-03" ignored +psql: warning: extra command-line argument "2021-07-03" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jul 3 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-03" ignored +psql: warning: extra command-line argument "2021-07-03" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jul 3 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-03" ignored +psql: warning: extra command-line argument "2021-07-03" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jul 4 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-04" ignored +psql: warning: extra command-line argument "2021-07-04" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jul 4 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-04" ignored +psql: warning: extra command-line argument "2021-07-04" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jul 4 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-04" ignored +psql: warning: extra command-line argument "2021-07-04" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jul 4 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-04" ignored +psql: warning: extra command-line argument "2021-07-04" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jul 4 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-04" ignored +psql: warning: extra command-line argument "2021-07-04" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jul 4 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-04" ignored +psql: warning: extra command-line argument "2021-07-04" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jul 4 06:59:02 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-04" ignored +psql: warning: extra command-line argument "2021-07-04" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jul 4 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-04" ignored +psql: warning: extra command-line argument "2021-07-04" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jul 4 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-04" ignored +psql: warning: extra command-line argument "2021-07-04" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jul 4 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-04" ignored +psql: warning: extra command-line argument "2021-07-04" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jul 4 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-04" ignored +psql: warning: extra command-line argument "2021-07-04" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jul 4 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-04" ignored +psql: warning: extra command-line argument "2021-07-04" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jul 4 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-04" ignored +psql: warning: extra command-line argument "2021-07-04" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jul 4 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-04" ignored +psql: warning: extra command-line argument "2021-07-04" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jul 4 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-04" ignored +psql: warning: extra command-line argument "2021-07-04" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jul 4 15:59:02 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-04" ignored +psql: warning: extra command-line argument "2021-07-04" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jul 4 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-04" ignored +psql: warning: extra command-line argument "2021-07-04" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jul 4 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-04" ignored +psql: warning: extra command-line argument "2021-07-04" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jul 4 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-04" ignored +psql: warning: extra command-line argument "2021-07-04" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jul 4 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-04" ignored +psql: warning: extra command-line argument "2021-07-04" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jul 4 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-04" ignored +psql: warning: extra command-line argument "2021-07-04" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jul 4 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-04" ignored +psql: warning: extra command-line argument "2021-07-04" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jul 4 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-04" ignored +psql: warning: extra command-line argument "2021-07-04" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jul 4 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-04" ignored +psql: warning: extra command-line argument "2021-07-04" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jul 5 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-05" ignored +psql: warning: extra command-line argument "2021-07-05" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jul 5 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-05" ignored +psql: warning: extra command-line argument "2021-07-05" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jul 5 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-05" ignored +psql: warning: extra command-line argument "2021-07-05" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jul 5 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-05" ignored +psql: warning: extra command-line argument "2021-07-05" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jul 5 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-05" ignored +psql: warning: extra command-line argument "2021-07-05" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jul 5 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-05" ignored +psql: warning: extra command-line argument "2021-07-05" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jul 5 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-05" ignored +psql: warning: extra command-line argument "2021-07-05" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jul 5 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-05" ignored +psql: warning: extra command-line argument "2021-07-05" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jul 5 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-05" ignored +psql: warning: extra command-line argument "2021-07-05" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jul 5 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-05" ignored +psql: warning: extra command-line argument "2021-07-05" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jul 5 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-05" ignored +psql: warning: extra command-line argument "2021-07-05" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jul 5 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-05" ignored +psql: warning: extra command-line argument "2021-07-05" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jul 5 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-05" ignored +psql: warning: extra command-line argument "2021-07-05" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jul 5 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-05" ignored +psql: warning: extra command-line argument "2021-07-05" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jul 5 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-05" ignored +psql: warning: extra command-line argument "2021-07-05" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jul 5 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-05" ignored +psql: warning: extra command-line argument "2021-07-05" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jul 5 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-05" ignored +psql: warning: extra command-line argument "2021-07-05" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jul 5 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-05" ignored +psql: warning: extra command-line argument "2021-07-05" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jul 5 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-05" ignored +psql: warning: extra command-line argument "2021-07-05" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jul 5 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-05" ignored +psql: warning: extra command-line argument "2021-07-05" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jul 5 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-05" ignored +psql: warning: extra command-line argument "2021-07-05" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jul 5 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-05" ignored +psql: warning: extra command-line argument "2021-07-05" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jul 5 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-05" ignored +psql: warning: extra command-line argument "2021-07-05" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jul 5 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-05" ignored +psql: warning: extra command-line argument "2021-07-05" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jul 6 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-06" ignored +psql: warning: extra command-line argument "2021-07-06" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jul 6 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-06" ignored +psql: warning: extra command-line argument "2021-07-06" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jul 6 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-06" ignored +psql: warning: extra command-line argument "2021-07-06" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jul 6 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-06" ignored +psql: warning: extra command-line argument "2021-07-06" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jul 6 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-06" ignored +psql: warning: extra command-line argument "2021-07-06" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jul 6 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-06" ignored +psql: warning: extra command-line argument "2021-07-06" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jul 6 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-06" ignored +psql: warning: extra command-line argument "2021-07-06" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jul 6 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-06" ignored +psql: warning: extra command-line argument "2021-07-06" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jul 6 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-06" ignored +psql: warning: extra command-line argument "2021-07-06" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jul 6 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "5432" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_demo" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-07-06" ignored +psql: warning: extra command-line argument "2021-07-06" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jul 6 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jul 6 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jul 6 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jul 6 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jul 6 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jul 6 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jul 6 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jul 6 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jul 6 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jul 6 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jul 6 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jul 6 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jul 6 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jul 6 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jul 7 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jul 7 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jul 7 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jul 7 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jul 7 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jul 7 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jul 7 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jul 7 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jul 7 08:59:02 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jul 7 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jul 7 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jul 7 11:59:02 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jul 7 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jul 7 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jul 7 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jul 7 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jul 7 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jul 7 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jul 7 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jul 7 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jul 7 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jul 7 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jul 7 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jul 7 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jul 8 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jul 8 01:59:02 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jul 8 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jul 8 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jul 8 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jul 8 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jul 8 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jul 8 07:59:02 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jul 8 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jul 8 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jul 8 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jul 8 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jul 8 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jul 8 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jul 8 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jul 8 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jul 8 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jul 8 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jul 8 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jul 8 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jul 8 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jul 8 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jul 8 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jul 8 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jul 9 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jul 9 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jul 9 02:59:02 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jul 9 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jul 9 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jul 9 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jul 9 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jul 9 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jul 9 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jul 9 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jul 9 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jul 9 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jul 9 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jul 9 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jul 9 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jul 9 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jul 9 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jul 9 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jul 9 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jul 9 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jul 9 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jul 9 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jul 9 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jul 9 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jul 10 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jul 10 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jul 10 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jul 10 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jul 10 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jul 10 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jul 10 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jul 10 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jul 10 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jul 10 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jul 10 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jul 10 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jul 10 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jul 10 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jul 10 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jul 10 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jul 10 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jul 10 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jul 10 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jul 10 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jul 10 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jul 10 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jul 10 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jul 10 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jul 11 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jul 11 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jul 11 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jul 11 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jul 11 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jul 11 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jul 11 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jul 11 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jul 11 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jul 11 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jul 11 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jul 11 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jul 11 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jul 11 13:59:02 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jul 11 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jul 11 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jul 11 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jul 11 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jul 11 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jul 11 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jul 11 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jul 11 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jul 11 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jul 11 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jul 12 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jul 12 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jul 12 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jul 12 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jul 12 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jul 12 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jul 12 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jul 12 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jul 12 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jul 12 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jul 12 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jul 12 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jul 12 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jul 12 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jul 12 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jul 12 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jul 12 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jul 12 17:59:02 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jul 12 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jul 12 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jul 12 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jul 12 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jul 12 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jul 12 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jul 13 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jul 13 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jul 13 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jul 13 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jul 13 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jul 13 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jul 13 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jul 13 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jul 13 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jul 13 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jul 13 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jul 13 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jul 13 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jul 13 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jul 13 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jul 13 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jul 13 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jul 13 17:59:02 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jul 13 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jul 13 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jul 13 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jul 13 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jul 13 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jul 13 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jul 14 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jul 14 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jul 14 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jul 14 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jul 14 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jul 14 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jul 14 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jul 14 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jul 14 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jul 14 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jul 14 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jul 14 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jul 14 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jul 14 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jul 14 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jul 14 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jul 14 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jul 14 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jul 14 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jul 14 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jul 14 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jul 14 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jul 14 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jul 14 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jul 15 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jul 15 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jul 15 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jul 15 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jul 15 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jul 15 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jul 15 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jul 15 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jul 15 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jul 15 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jul 15 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jul 15 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jul 15 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jul 15 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jul 15 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jul 15 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jul 15 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jul 15 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jul 15 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jul 15 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jul 15 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jul 15 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jul 15 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jul 15 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jul 16 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jul 16 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jul 16 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jul 16 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jul 16 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jul 16 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jul 16 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jul 16 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jul 16 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jul 16 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jul 16 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jul 16 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jul 16 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jul 16 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jul 16 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jul 16 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jul 16 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jul 16 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jul 16 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jul 16 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jul 16 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jul 16 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jul 16 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jul 16 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jul 17 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jul 17 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jul 17 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jul 17 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jul 17 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jul 17 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jul 17 06:59:02 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jul 17 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jul 17 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jul 17 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jul 17 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jul 17 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jul 17 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jul 17 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jul 17 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jul 17 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jul 17 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jul 17 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jul 17 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jul 17 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jul 17 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jul 17 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jul 17 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jul 17 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jul 18 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jul 18 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jul 18 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jul 18 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jul 18 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jul 18 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jul 18 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jul 18 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jul 18 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jul 18 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jul 18 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jul 18 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jul 18 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jul 18 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jul 18 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jul 18 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jul 18 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jul 18 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jul 18 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jul 18 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jul 18 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jul 18 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jul 18 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jul 18 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jul 19 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jul 19 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jul 19 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jul 19 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jul 19 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jul 19 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jul 19 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jul 19 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jul 19 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jul 19 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jul 19 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jul 19 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jul 19 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jul 19 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jul 19 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jul 19 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jul 19 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jul 19 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jul 19 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jul 19 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jul 19 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jul 19 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jul 19 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jul 19 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jul 20 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jul 20 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jul 20 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jul 20 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jul 20 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jul 20 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jul 20 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jul 20 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jul 20 08:59:02 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jul 20 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jul 20 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jul 20 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jul 20 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jul 20 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jul 20 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jul 20 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jul 20 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jul 20 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jul 20 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jul 20 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jul 20 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jul 20 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jul 20 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jul 20 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jul 21 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jul 21 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jul 21 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jul 21 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jul 21 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jul 21 05:59:02 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jul 21 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jul 21 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jul 21 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jul 21 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jul 21 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jul 21 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jul 21 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jul 21 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jul 21 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jul 21 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jul 21 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jul 21 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jul 21 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jul 21 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jul 21 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jul 21 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jul 21 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jul 21 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jul 22 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jul 22 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jul 22 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jul 22 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jul 22 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jul 22 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jul 22 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jul 22 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jul 22 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jul 22 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jul 22 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jul 22 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jul 22 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jul 22 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jul 22 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jul 22 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jul 22 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jul 22 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jul 22 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jul 22 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jul 22 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jul 22 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jul 22 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jul 22 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jul 23 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jul 23 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jul 23 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jul 23 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jul 23 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jul 23 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jul 23 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jul 23 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jul 23 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jul 23 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jul 23 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jul 23 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jul 23 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jul 23 13:59:02 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jul 23 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jul 23 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jul 23 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jul 23 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jul 23 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jul 23 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jul 23 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jul 23 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jul 23 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jul 23 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jul 24 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jul 24 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jul 24 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jul 24 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jul 24 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jul 24 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jul 24 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jul 24 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jul 24 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jul 24 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jul 24 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jul 24 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jul 24 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jul 24 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jul 24 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jul 24 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jul 24 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jul 24 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jul 24 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jul 24 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jul 24 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jul 24 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jul 24 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jul 24 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jul 25 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jul 25 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jul 25 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jul 25 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jul 25 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jul 25 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jul 25 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jul 25 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jul 25 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jul 25 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jul 25 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jul 25 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jul 25 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jul 25 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jul 25 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jul 25 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jul 25 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jul 25 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jul 25 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jul 25 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jul 25 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jul 25 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jul 25 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Jul 25 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jul 26 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jul 26 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jul 26 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jul 26 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jul 26 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jul 26 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jul 26 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jul 26 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jul 26 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jul 26 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jul 26 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jul 26 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jul 26 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jul 26 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jul 26 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jul 26 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jul 26 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jul 26 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jul 26 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jul 26 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jul 26 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jul 26 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jul 26 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Jul 26 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jul 27 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jul 27 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jul 27 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jul 27 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jul 27 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jul 27 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jul 27 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jul 27 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jul 27 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jul 27 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jul 27 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jul 27 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jul 27 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jul 27 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jul 27 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jul 27 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jul 27 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jul 27 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jul 27 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jul 27 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jul 27 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jul 27 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jul 27 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Jul 27 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jul 28 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jul 28 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jul 28 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jul 28 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jul 28 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jul 28 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jul 28 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jul 28 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jul 28 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jul 28 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jul 28 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jul 28 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jul 28 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jul 28 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jul 28 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jul 28 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jul 28 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jul 28 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jul 28 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jul 28 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jul 28 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jul 28 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jul 28 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Jul 28 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jul 29 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jul 29 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jul 29 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jul 29 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jul 29 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jul 29 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jul 29 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jul 29 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jul 29 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jul 29 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jul 29 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jul 29 11:59:02 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jul 29 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jul 29 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jul 29 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jul 29 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jul 29 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jul 29 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jul 29 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jul 29 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jul 29 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jul 29 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jul 29 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Jul 29 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jul 30 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jul 30 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jul 30 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jul 30 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jul 30 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jul 30 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jul 30 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jul 30 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jul 30 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jul 30 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jul 30 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jul 30 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jul 30 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jul 30 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jul 30 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jul 30 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jul 30 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jul 30 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jul 30 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jul 30 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jul 30 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jul 30 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jul 30 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Jul 30 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jul 31 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jul 31 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jul 31 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jul 31 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jul 31 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jul 31 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jul 31 06:59:02 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jul 31 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jul 31 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jul 31 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jul 31 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jul 31 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jul 31 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jul 31 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jul 31 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jul 31 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jul 31 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jul 31 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jul 31 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jul 31 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jul 31 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jul 31 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jul 31 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Jul 31 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Aug 1 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Aug 1 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Aug 1 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Aug 1 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Aug 1 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Aug 1 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Aug 1 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Aug 1 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Aug 1 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Aug 1 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Aug 1 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Aug 1 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Aug 1 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Aug 1 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Aug 1 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Aug 1 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Aug 1 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Aug 1 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Aug 1 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Aug 1 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Aug 1 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Aug 1 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Aug 1 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Aug 1 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Aug 2 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Aug 2 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Aug 2 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Aug 2 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Aug 2 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Aug 2 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Aug 2 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Aug 2 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Aug 2 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Aug 2 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Aug 2 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Aug 2 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Aug 2 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Aug 2 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Aug 2 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Aug 2 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Aug 2 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Aug 2 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Aug 2 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Aug 2 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Aug 2 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Aug 2 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Aug 2 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Aug 2 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Aug 3 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Aug 3 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Aug 3 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Aug 3 03:59:02 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Aug 3 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Aug 3 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Aug 3 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Aug 3 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Aug 3 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Aug 3 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Aug 3 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Aug 3 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Aug 3 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Aug 3 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Aug 3 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Aug 3 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Aug 3 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Aug 3 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Aug 3 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Aug 3 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Aug 3 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Aug 3 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Aug 3 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Aug 3 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Aug 4 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Aug 4 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Aug 4 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Aug 4 03:59:02 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Aug 4 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Aug 4 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Aug 4 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Aug 4 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Aug 4 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Aug 4 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Aug 4 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Aug 4 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Aug 4 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Aug 4 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Aug 4 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Aug 4 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Aug 4 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Aug 4 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Aug 4 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Aug 4 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Aug 4 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Aug 4 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Aug 4 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Aug 4 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Aug 5 00:59:02 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Aug 5 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Aug 5 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Aug 5 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Aug 5 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Aug 5 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Aug 5 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Aug 5 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Aug 5 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Aug 5 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Aug 5 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Aug 5 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Aug 5 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Aug 5 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Aug 5 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Aug 5 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Aug 5 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Aug 5 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Aug 5 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Aug 5 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Aug 5 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Aug 5 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Aug 5 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Aug 5 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Aug 6 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Aug 6 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Aug 6 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Aug 6 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Aug 6 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Aug 6 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Aug 6 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Aug 6 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Aug 6 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Aug 6 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Aug 6 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Aug 6 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Aug 6 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Aug 6 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Aug 6 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Aug 6 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Aug 6 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Aug 6 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Aug 6 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Aug 6 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Aug 6 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Aug 6 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Aug 6 22:59:02 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Aug 6 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Aug 7 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Aug 7 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Aug 7 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Aug 7 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Aug 7 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Aug 7 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Aug 7 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Aug 7 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Aug 7 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Aug 7 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Aug 7 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Aug 7 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Aug 7 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Aug 7 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Aug 7 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Aug 7 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Aug 7 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Aug 7 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Aug 7 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Aug 7 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Aug 7 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Aug 7 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Aug 7 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Aug 7 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Aug 8 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Aug 8 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Aug 8 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Aug 8 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Aug 8 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Aug 8 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Aug 8 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Aug 8 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Aug 8 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Aug 8 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Aug 8 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Aug 8 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Aug 8 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Aug 8 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Aug 8 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Aug 8 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Aug 8 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Aug 8 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Aug 8 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Aug 8 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Aug 8 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Aug 8 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Aug 8 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Aug 8 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Aug 9 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Aug 9 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Aug 9 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Aug 9 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Aug 9 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Aug 9 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Aug 9 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Aug 9 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Aug 9 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Aug 9 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Aug 9 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Aug 9 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Aug 9 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Aug 9 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Aug 9 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Aug 9 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Aug 9 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Aug 9 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Aug 9 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Aug 9 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Aug 9 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Aug 9 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Aug 9 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Aug 9 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Aug 10 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Aug 10 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Aug 10 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Aug 10 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Aug 10 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Aug 10 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Aug 10 06:59:02 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Aug 10 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Aug 10 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Aug 10 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Aug 10 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Aug 10 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Aug 10 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Aug 10 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Aug 10 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Aug 10 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Aug 10 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Aug 10 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Aug 10 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Aug 10 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Aug 10 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Aug 10 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Aug 10 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Aug 10 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Aug 11 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Aug 11 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Aug 11 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Aug 11 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Aug 11 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Aug 11 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Aug 11 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Aug 11 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Aug 11 08:59:02 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Aug 11 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Aug 11 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Aug 11 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Aug 11 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Aug 11 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Aug 11 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Aug 11 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Aug 11 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Aug 11 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Aug 11 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Aug 11 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Aug 11 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Aug 11 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Aug 11 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Aug 11 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Aug 12 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Aug 12 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Aug 12 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Aug 12 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Aug 12 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Aug 12 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Aug 12 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Aug 12 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Aug 12 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Aug 12 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Aug 12 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Aug 12 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Aug 12 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Aug 12 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Aug 12 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Aug 12 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Aug 12 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Aug 12 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Aug 12 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Aug 12 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Aug 12 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Aug 12 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Aug 12 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Aug 12 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Aug 13 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Aug 13 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Aug 13 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Aug 13 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Aug 13 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Aug 13 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Aug 13 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Aug 13 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Aug 13 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Aug 13 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Aug 13 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Aug 13 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Aug 13 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Aug 13 13:59:02 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Aug 13 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Aug 13 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Aug 13 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Aug 13 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Aug 13 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Aug 13 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Aug 13 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Aug 13 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Aug 13 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Aug 13 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Aug 14 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Aug 14 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Aug 14 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Aug 14 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Aug 14 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Aug 14 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Aug 14 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Aug 14 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Aug 14 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Aug 14 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Aug 14 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Aug 14 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Aug 14 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Aug 14 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Aug 14 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Aug 14 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Aug 14 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Aug 14 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Aug 14 18:59:02 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Aug 14 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Aug 14 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Aug 14 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Aug 14 22:59:02 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Aug 14 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Aug 15 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Aug 15 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Aug 15 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Aug 15 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Aug 15 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Aug 15 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Aug 15 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Aug 15 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Aug 15 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Aug 15 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Aug 15 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Aug 15 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Aug 15 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Aug 15 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Aug 15 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Aug 15 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Aug 15 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Aug 15 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Aug 15 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Aug 15 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Aug 15 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Aug 15 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Aug 15 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Aug 15 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Aug 16 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Aug 16 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Aug 16 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Aug 16 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Aug 16 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Aug 16 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Aug 16 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Aug 16 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Aug 16 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Aug 16 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Aug 16 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Aug 16 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Aug 16 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Aug 16 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Aug 16 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Aug 16 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Aug 16 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Aug 16 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Aug 16 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Aug 16 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Aug 16 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Aug 16 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Aug 16 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Aug 16 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Aug 17 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Aug 17 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Aug 17 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Aug 17 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Aug 17 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Aug 17 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Aug 17 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Aug 17 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Aug 17 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Aug 17 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Aug 17 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Aug 17 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Aug 17 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Aug 17 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Aug 17 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Aug 17 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Aug 17 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Aug 17 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Aug 17 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Aug 17 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Aug 17 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Aug 17 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Aug 17 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Aug 17 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Aug 18 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Aug 18 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Aug 18 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Aug 18 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Aug 18 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Aug 18 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Aug 18 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Aug 18 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Aug 18 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Aug 18 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Aug 18 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Aug 18 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Aug 18 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Aug 18 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Aug 18 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Aug 18 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Aug 18 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Aug 18 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Aug 18 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Aug 18 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Aug 18 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Aug 18 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Aug 18 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Aug 18 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Aug 19 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Aug 19 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Aug 19 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Aug 19 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Aug 19 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Aug 19 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Aug 19 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Aug 19 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Aug 19 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Aug 19 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Aug 19 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Aug 19 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Aug 19 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Aug 19 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Aug 19 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Aug 19 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Aug 19 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Aug 19 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Aug 19 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Aug 19 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Aug 19 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Aug 19 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Aug 19 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Aug 19 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Aug 20 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Aug 20 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Aug 20 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Aug 20 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Aug 20 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Aug 20 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Aug 20 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Aug 20 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Aug 20 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Aug 20 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Aug 20 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Aug 20 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Aug 20 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Aug 20 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Aug 20 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Aug 20 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Aug 20 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Aug 20 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Aug 20 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Aug 20 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Aug 20 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Aug 20 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Aug 20 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Aug 20 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Aug 21 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Aug 21 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Aug 21 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Aug 21 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Aug 21 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Aug 21 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Aug 21 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Aug 21 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Aug 21 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Aug 21 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Aug 21 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Aug 21 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Aug 21 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Aug 21 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Aug 21 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Aug 21 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Aug 21 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Aug 21 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Aug 21 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Aug 21 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Aug 21 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Aug 21 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Aug 21 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Aug 21 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Aug 22 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Aug 22 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Aug 22 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Aug 22 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Aug 22 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Aug 22 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Aug 22 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Aug 22 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Aug 22 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Aug 22 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Aug 22 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Aug 22 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Aug 22 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Aug 22 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Aug 22 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Aug 22 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Aug 22 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Aug 22 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Aug 22 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Aug 22 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Aug 22 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Aug 22 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Aug 22 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Aug 22 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Aug 23 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Aug 23 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Aug 23 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Aug 23 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Aug 23 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Aug 23 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Aug 23 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Aug 23 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Aug 23 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Aug 23 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Aug 23 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Aug 23 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Aug 23 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Aug 23 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Aug 23 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Aug 23 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Aug 23 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Aug 23 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Aug 23 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Aug 23 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Aug 23 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Aug 23 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Aug 23 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Aug 23 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Aug 24 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Aug 24 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Aug 24 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Aug 24 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Aug 24 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Aug 24 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Aug 24 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Aug 24 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Aug 24 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Aug 24 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Aug 24 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Aug 24 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Aug 24 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Aug 24 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Aug 24 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Aug 24 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Aug 24 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Aug 24 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Aug 24 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Aug 24 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Aug 24 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Aug 24 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Aug 24 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Aug 24 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Aug 25 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Aug 25 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Aug 25 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Aug 25 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Aug 25 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Aug 25 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Aug 25 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Aug 25 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Aug 25 08:59:02 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Aug 25 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Aug 25 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Aug 25 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Aug 25 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Aug 25 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Aug 25 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Aug 25 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Aug 25 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Aug 25 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Aug 25 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Aug 25 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Aug 25 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Aug 25 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Aug 25 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Aug 25 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Aug 26 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Aug 26 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Aug 26 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Aug 26 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Aug 26 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Aug 26 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Aug 26 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Aug 26 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Aug 26 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Aug 26 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Aug 26 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Aug 26 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Aug 26 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Aug 26 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Aug 26 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Aug 26 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Aug 26 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Aug 26 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Aug 26 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Aug 26 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Aug 26 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Aug 26 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Aug 26 22:59:02 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Aug 26 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Aug 27 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Aug 27 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Aug 27 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Aug 27 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Aug 27 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Aug 27 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Aug 27 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Aug 27 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Aug 27 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Aug 27 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Aug 27 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Aug 27 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Aug 27 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Aug 27 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Aug 27 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Aug 27 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Aug 27 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Aug 27 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Aug 27 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Aug 27 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Aug 27 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Aug 27 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Aug 27 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Aug 27 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Aug 28 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Aug 28 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Aug 28 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Aug 28 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Aug 28 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Aug 28 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Aug 28 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Aug 28 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Aug 28 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Aug 28 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Aug 28 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Aug 28 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Aug 28 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Aug 28 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Aug 28 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Aug 28 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Aug 28 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Aug 28 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Aug 28 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Aug 28 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Aug 28 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Aug 28 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Aug 28 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Aug 28 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Aug 29 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Aug 29 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Aug 29 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Aug 29 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Aug 29 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Aug 29 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Aug 29 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Aug 29 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Aug 29 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Aug 29 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Aug 29 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Aug 29 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Aug 29 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Aug 29 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Aug 29 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Aug 29 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Aug 29 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Aug 29 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Aug 29 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Aug 29 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Aug 29 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Aug 29 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Aug 29 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Aug 29 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Aug 30 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Aug 30 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Aug 30 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Aug 30 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Aug 30 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Aug 30 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Aug 30 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Aug 30 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Aug 30 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Aug 30 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Aug 30 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Aug 30 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Aug 30 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Aug 30 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Aug 30 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Aug 30 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Aug 30 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Aug 30 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Aug 30 18:59:02 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Aug 30 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Aug 30 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Aug 30 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Aug 30 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Aug 30 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Aug 31 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Aug 31 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Aug 31 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Aug 31 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Aug 31 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Aug 31 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Aug 31 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Aug 31 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Aug 31 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Aug 31 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Aug 31 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Aug 31 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Aug 31 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Aug 31 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Aug 31 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Aug 31 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Aug 31 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Aug 31 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Aug 31 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Aug 31 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Aug 31 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Aug 31 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Aug 31 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Aug 31 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Sep 1 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Sep 1 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Sep 1 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Sep 1 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Sep 1 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Sep 1 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Sep 1 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Sep 1 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Sep 1 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Sep 1 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Sep 1 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Sep 1 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Sep 1 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Sep 1 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Sep 1 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Sep 1 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Sep 1 16:59:02 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Sep 1 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Sep 1 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Sep 1 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Sep 1 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Sep 1 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Sep 1 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Sep 1 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Sep 2 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Sep 2 01:59:02 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Sep 2 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Sep 2 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Sep 2 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Sep 2 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Sep 2 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Sep 2 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Sep 2 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Sep 2 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Sep 2 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Sep 2 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Sep 2 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Sep 2 13:59:02 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Sep 2 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Sep 2 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Sep 2 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Sep 2 17:59:02 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Sep 2 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Sep 2 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Sep 2 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Sep 2 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Sep 2 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Sep 2 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Sep 3 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Sep 3 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Sep 3 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Sep 3 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Sep 3 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Sep 3 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Sep 3 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Sep 3 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Sep 3 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Sep 3 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Sep 3 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Sep 3 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Sep 3 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Sep 3 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Sep 3 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Sep 3 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Sep 3 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Sep 3 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Sep 3 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Sep 3 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Sep 3 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Sep 3 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Sep 3 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Sep 3 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Sep 4 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Sep 4 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Sep 4 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Sep 4 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Sep 4 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Sep 4 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Sep 4 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Sep 4 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Sep 4 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Sep 4 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Sep 4 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Sep 4 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Sep 4 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Sep 4 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Sep 4 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Sep 4 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Sep 4 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Sep 4 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Sep 4 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Sep 4 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Sep 4 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Sep 4 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Sep 4 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Sep 4 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Sep 5 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Sep 5 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Sep 5 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Sep 5 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Sep 5 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Sep 5 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Sep 5 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Sep 5 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Sep 5 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Sep 5 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Sep 5 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Sep 5 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Sep 5 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Sep 5 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Sep 5 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Sep 5 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Sep 5 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Sep 5 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Sep 5 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Sep 5 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Sep 5 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Sep 5 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Sep 5 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Sep 5 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Sep 6 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Sep 6 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Sep 6 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Sep 6 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Sep 6 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Sep 6 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Sep 6 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Sep 6 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Sep 6 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Sep 6 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Sep 6 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Sep 6 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Sep 6 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Sep 6 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Sep 6 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Sep 6 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Sep 6 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Sep 6 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Sep 6 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Sep 6 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Sep 6 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Sep 6 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Sep 6 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Sep 6 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Sep 7 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Sep 7 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Sep 7 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Sep 7 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Sep 7 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Sep 7 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Sep 7 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Sep 7 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Sep 7 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Sep 7 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Sep 7 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Sep 7 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Sep 7 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Sep 7 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Sep 7 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Sep 7 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Sep 7 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Sep 7 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Sep 7 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Sep 7 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Sep 7 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Sep 7 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Sep 7 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Sep 7 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Sep 8 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Sep 8 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Sep 8 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Sep 8 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Sep 8 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Sep 8 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Sep 8 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Sep 8 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Sep 8 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Sep 8 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Sep 8 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Sep 8 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Sep 8 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Sep 8 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Sep 8 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Sep 8 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Sep 8 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Sep 8 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Sep 8 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Sep 8 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Sep 8 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Sep 8 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Sep 8 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Sep 8 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Sep 9 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Sep 9 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Sep 9 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Sep 9 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Sep 9 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Sep 9 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Sep 9 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Sep 9 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Sep 9 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Sep 9 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Sep 9 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Sep 9 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Sep 9 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Sep 9 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Sep 9 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Sep 9 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Sep 9 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Sep 9 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Sep 9 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Sep 9 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Sep 9 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Sep 9 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Sep 9 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Sep 9 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Sep 10 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Sep 10 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Sep 10 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Sep 10 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Sep 10 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Sep 10 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Sep 10 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Sep 10 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Sep 10 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Sep 10 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Sep 10 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Sep 10 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Sep 10 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Sep 10 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Sep 10 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Sep 10 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Sep 10 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Sep 10 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Sep 10 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Sep 10 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Sep 10 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Sep 10 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Sep 10 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Sep 10 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Sep 11 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Sep 11 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Sep 11 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Sep 11 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Sep 11 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Sep 11 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Sep 11 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Sep 11 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Sep 11 08:59:02 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Sep 11 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Sep 11 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Sep 11 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Sep 11 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Sep 11 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Sep 11 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Sep 11 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Sep 11 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Sep 11 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Sep 11 18:59:02 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Sep 11 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Sep 11 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Sep 11 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Sep 11 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Sep 11 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Sep 12 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Sep 12 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Sep 12 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Sep 12 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Sep 12 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Sep 12 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Sep 12 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Sep 12 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Sep 12 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Sep 12 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Sep 12 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Sep 12 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Sep 12 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Sep 12 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Sep 12 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Sep 12 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Sep 12 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Sep 12 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Sep 12 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Sep 12 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Sep 12 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Sep 12 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Sep 12 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Sep 12 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Sep 13 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Sep 13 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Sep 13 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Sep 13 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Sep 13 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Sep 13 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Sep 13 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Sep 13 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Sep 13 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Sep 13 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Sep 13 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Sep 13 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Sep 13 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Sep 13 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Sep 13 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Sep 13 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Sep 13 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Sep 13 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Sep 13 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Sep 13 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Sep 13 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Sep 13 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Sep 13 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Sep 13 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Sep 14 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Sep 14 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Sep 14 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Sep 14 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Sep 14 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Sep 14 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Sep 14 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Sep 14 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Sep 14 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Sep 14 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Sep 14 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Sep 14 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Sep 14 12:59:02 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Sep 14 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Sep 14 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Sep 14 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Sep 14 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Sep 14 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Sep 14 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Sep 14 19:59:02 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Sep 14 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Sep 14 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Sep 14 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Sep 14 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Sep 15 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Sep 15 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Sep 15 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Sep 15 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Sep 15 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Sep 15 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Sep 15 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Sep 15 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Sep 15 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Sep 15 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Sep 15 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Sep 15 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Sep 15 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Sep 15 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Sep 15 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Sep 15 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Sep 15 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Sep 15 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Sep 15 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Sep 15 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Sep 15 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Sep 15 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Sep 15 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Sep 15 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Sep 16 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Sep 16 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Sep 16 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Sep 16 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Sep 16 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Sep 16 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Sep 16 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Sep 16 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Sep 16 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Sep 16 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Sep 16 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Sep 16 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Sep 16 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Sep 16 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Sep 16 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Sep 16 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Sep 16 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Sep 16 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Sep 16 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Sep 16 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Sep 16 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Sep 16 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Sep 16 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Sep 16 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Sep 17 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Sep 17 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Sep 17 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Sep 17 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Sep 17 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Sep 17 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Sep 17 06:59:02 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Sep 17 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Sep 17 08:59:02 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Sep 17 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Sep 17 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Sep 17 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Sep 17 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Sep 17 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Sep 17 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Sep 17 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Sep 17 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Sep 17 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Sep 17 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Sep 17 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Sep 17 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Sep 17 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Sep 17 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Sep 17 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Sep 18 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Sep 18 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Sep 18 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Sep 18 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Sep 18 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Sep 18 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Sep 18 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Sep 18 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Sep 18 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Sep 18 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Sep 18 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Sep 18 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Sep 18 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Sep 18 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Sep 18 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Sep 18 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Sep 18 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Sep 18 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Sep 18 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Sep 18 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Sep 18 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Sep 18 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Sep 18 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Sep 18 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Sep 19 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Sep 19 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Sep 19 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Sep 19 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Sep 19 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Sep 19 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Sep 19 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Sep 19 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Sep 19 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Sep 19 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Sep 19 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Sep 19 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Sep 19 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Sep 19 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Sep 19 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Sep 19 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Sep 19 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Sep 19 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Sep 19 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Sep 19 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Sep 19 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Sep 19 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Sep 19 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Sep 19 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Sep 20 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Sep 20 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Sep 20 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Sep 20 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Sep 20 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Sep 20 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Sep 20 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Sep 20 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Sep 20 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Sep 20 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Sep 20 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Sep 20 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Sep 20 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Sep 20 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Sep 20 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Sep 20 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Sep 20 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Sep 20 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Sep 20 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Sep 20 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Sep 20 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Sep 20 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Sep 20 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Sep 20 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Sep 21 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Sep 21 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Sep 21 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Sep 21 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Sep 21 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Sep 21 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Sep 21 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Sep 21 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Sep 21 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Sep 21 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Sep 21 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Sep 21 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Sep 21 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Sep 21 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Sep 21 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Sep 21 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Sep 21 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Sep 21 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Sep 21 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Sep 21 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Sep 21 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Sep 21 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Sep 21 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Sep 21 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Sep 22 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Sep 22 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Sep 22 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Sep 22 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Sep 22 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Sep 22 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Sep 22 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Sep 22 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Sep 22 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Sep 22 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Sep 22 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Sep 22 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Sep 22 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Sep 22 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Sep 22 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Sep 22 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Sep 22 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Sep 22 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Sep 22 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Sep 22 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Sep 22 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Sep 22 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Sep 22 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Sep 22 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Sep 23 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Sep 23 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Sep 23 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Sep 23 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Sep 23 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Sep 23 05:59:02 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Sep 23 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Sep 23 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Sep 23 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Sep 23 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Sep 23 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Sep 23 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Sep 23 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Sep 23 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Sep 23 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Sep 23 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Sep 23 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Sep 23 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Sep 23 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Sep 23 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Sep 23 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Sep 23 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Sep 23 22:59:02 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Sep 23 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Sep 24 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Sep 24 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Sep 24 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Sep 24 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Sep 24 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Sep 24 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Sep 24 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Sep 24 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Sep 24 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Sep 24 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Sep 24 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Sep 24 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Sep 24 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Sep 24 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Sep 24 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Sep 24 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Sep 24 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Sep 24 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Sep 24 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Sep 24 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Sep 24 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Sep 24 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Sep 24 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Sep 24 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Sep 25 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Sep 25 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Sep 25 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Sep 25 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Sep 25 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Sep 25 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Sep 25 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Sep 25 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Sep 25 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Sep 25 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Sep 25 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Sep 25 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Sep 25 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Sep 25 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Sep 25 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Sep 25 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Sep 25 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Sep 25 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Sep 25 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Sep 25 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Sep 25 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Sep 25 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Sep 25 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Sep 25 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Sep 26 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Sep 26 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Sep 26 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Sep 26 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Sep 26 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Sep 26 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Sep 26 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Sep 26 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Sep 26 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Sep 26 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Sep 26 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Sep 26 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Sep 26 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Sep 26 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Sep 26 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Sep 26 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Sep 26 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Sep 26 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Sep 26 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Sep 26 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Sep 26 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Sep 26 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Sep 26 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Sep 26 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Sep 27 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Sep 27 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Sep 27 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Sep 27 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Sep 27 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Sep 27 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Sep 27 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Sep 27 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Sep 27 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Sep 27 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Sep 27 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Sep 27 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Sep 27 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Sep 27 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Sep 27 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Sep 27 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Sep 27 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Sep 27 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Sep 27 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Sep 27 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Sep 27 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Sep 27 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Sep 27 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Sep 27 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Sep 28 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Sep 28 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Sep 28 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Sep 28 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Sep 28 04:59:02 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Sep 28 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Sep 28 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Sep 28 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Sep 28 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Sep 28 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Sep 28 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Sep 28 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Sep 28 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Sep 28 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Sep 28 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Sep 28 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Sep 28 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Sep 28 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Sep 28 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Sep 28 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Sep 28 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Sep 28 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Sep 28 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Sep 28 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Sep 29 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Sep 29 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Sep 29 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Sep 29 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Sep 29 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Sep 29 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Sep 29 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Sep 29 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Sep 29 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Sep 29 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Sep 29 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Sep 29 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Sep 29 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Sep 29 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Sep 29 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Sep 29 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Sep 29 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Sep 29 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Sep 29 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Sep 29 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Sep 29 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Sep 29 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Sep 29 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Sep 29 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Sep 30 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Sep 30 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Sep 30 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Sep 30 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Sep 30 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Sep 30 05:59:02 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Sep 30 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Sep 30 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Sep 30 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Sep 30 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Sep 30 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Sep 30 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Sep 30 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Sep 30 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Sep 30 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Sep 30 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Sep 30 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Sep 30 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Sep 30 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Sep 30 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Sep 30 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Sep 30 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Sep 30 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Sep 30 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Oct 1 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Oct 1 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Oct 1 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Oct 1 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Oct 1 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Oct 1 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Oct 1 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Oct 1 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Oct 1 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Oct 1 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Oct 1 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Oct 1 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Oct 1 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Oct 1 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Oct 1 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Oct 1 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Oct 1 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Oct 1 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Oct 1 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Oct 1 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Oct 1 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Oct 1 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Oct 1 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Oct 1 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Oct 2 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Oct 2 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Oct 2 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Oct 2 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Oct 2 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Oct 2 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Oct 2 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Oct 2 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Oct 2 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Oct 2 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Oct 2 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Oct 2 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Oct 2 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Oct 2 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Oct 2 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Oct 2 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Oct 2 16:59:02 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Oct 2 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Oct 2 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Oct 2 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Oct 2 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Oct 2 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Oct 2 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Oct 2 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Oct 3 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Oct 3 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Oct 3 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Oct 3 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Oct 3 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Oct 3 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Oct 3 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Oct 3 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Oct 3 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Oct 3 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Oct 3 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Oct 3 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Oct 3 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Oct 3 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Oct 3 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Oct 3 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Oct 3 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Oct 3 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Oct 3 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Oct 3 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Oct 3 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Oct 3 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Oct 3 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Oct 3 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Oct 4 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Oct 4 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Oct 4 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Oct 4 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Oct 4 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Oct 4 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Oct 4 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Oct 4 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Oct 4 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Oct 4 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Oct 4 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Oct 4 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Oct 4 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Oct 4 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Oct 4 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Oct 4 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Oct 4 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Oct 4 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Oct 4 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Oct 4 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Oct 4 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Oct 4 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Oct 4 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Oct 4 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Oct 5 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Oct 5 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Oct 5 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Oct 5 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Oct 5 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Oct 5 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Oct 5 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Oct 5 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Oct 5 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Oct 5 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Oct 5 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Oct 5 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Oct 5 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Oct 5 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Oct 5 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Oct 5 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Oct 5 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Oct 5 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Oct 5 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Oct 5 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Oct 5 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Oct 5 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Oct 5 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Oct 5 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Oct 6 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Oct 6 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Oct 6 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Oct 6 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Oct 6 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Oct 6 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Oct 6 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Oct 6 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Oct 6 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Oct 6 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Oct 6 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Oct 6 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Oct 6 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Oct 6 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Oct 6 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Oct 6 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Oct 6 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Oct 6 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Oct 6 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Oct 6 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Oct 6 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Oct 6 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Oct 6 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Oct 6 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Oct 7 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Oct 7 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Oct 7 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Oct 7 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Oct 7 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Oct 7 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Oct 7 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Oct 7 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Oct 7 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Oct 7 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Oct 7 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Oct 7 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Oct 7 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Oct 7 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Oct 7 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Oct 7 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Oct 7 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Oct 7 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Oct 7 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Oct 7 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Oct 7 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Oct 7 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Oct 7 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Oct 7 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Oct 8 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Oct 8 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Oct 8 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Oct 8 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Oct 8 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Oct 8 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Oct 8 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Oct 8 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Oct 8 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Oct 8 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Oct 8 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Oct 8 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Oct 8 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Oct 8 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Oct 8 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Oct 8 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Oct 8 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Oct 8 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Oct 8 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Oct 8 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Oct 8 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Oct 8 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Oct 8 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Oct 8 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Oct 9 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Oct 9 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Oct 9 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Oct 9 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Oct 9 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Oct 9 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Oct 9 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Oct 9 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Oct 9 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Oct 9 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Oct 9 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Oct 9 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Oct 9 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Oct 9 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Oct 9 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Oct 9 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Oct 9 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Oct 9 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Oct 9 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Oct 9 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Oct 9 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Oct 9 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Oct 9 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Oct 9 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Oct 10 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Oct 10 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Oct 10 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Oct 10 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Oct 10 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Oct 10 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Oct 10 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Oct 10 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Oct 10 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Oct 10 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Oct 10 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Oct 10 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Oct 10 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Oct 10 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Oct 10 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Oct 10 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Oct 10 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Oct 10 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Oct 10 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Oct 10 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Oct 10 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Oct 10 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Oct 10 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Oct 10 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Oct 11 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Oct 11 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Oct 11 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Oct 11 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Oct 11 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Oct 11 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Oct 11 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Oct 11 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Oct 11 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Oct 11 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Oct 11 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Oct 11 11:59:02 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Oct 11 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Oct 11 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Oct 11 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Oct 11 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Oct 11 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Oct 11 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Oct 11 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Oct 11 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Oct 11 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Oct 11 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Oct 11 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Oct 11 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Oct 12 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Oct 12 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Oct 12 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Oct 12 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Oct 12 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Oct 12 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Oct 12 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Oct 12 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Oct 12 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Oct 12 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Oct 12 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Oct 12 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Oct 12 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Oct 12 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Oct 12 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Oct 12 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Oct 12 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Oct 12 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Oct 12 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Oct 12 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Oct 12 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Oct 12 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Oct 12 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Tue Oct 12 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Oct 13 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Oct 13 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Oct 13 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Oct 13 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Oct 13 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Oct 13 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Oct 13 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Oct 13 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Oct 13 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Oct 13 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Oct 13 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Oct 13 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Oct 13 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Oct 13 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Oct 13 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Oct 13 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Oct 13 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Oct 13 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Oct 13 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Oct 13 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Oct 13 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Oct 13 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Oct 13 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Wed Oct 13 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Oct 14 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Oct 14 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Oct 14 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Oct 14 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Oct 14 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Oct 14 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Oct 14 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Oct 14 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Oct 14 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Oct 14 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Oct 14 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Oct 14 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Oct 14 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Oct 14 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Oct 14 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Oct 14 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Oct 14 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Oct 14 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Oct 14 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Oct 14 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Oct 14 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Oct 14 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Oct 14 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Thu Oct 14 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Oct 15 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Oct 15 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Oct 15 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Oct 15 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Oct 15 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Oct 15 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Oct 15 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Oct 15 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Oct 15 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Oct 15 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Oct 15 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Oct 15 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Oct 15 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Oct 15 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Oct 15 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Oct 15 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Oct 15 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Oct 15 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Oct 15 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Oct 15 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Oct 15 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Oct 15 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Oct 15 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Fri Oct 15 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Oct 16 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Oct 16 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Oct 16 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Oct 16 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Oct 16 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Oct 16 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Oct 16 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Oct 16 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Oct 16 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Oct 16 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Oct 16 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Oct 16 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Oct 16 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Oct 16 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Oct 16 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Oct 16 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Oct 16 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Oct 16 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Oct 16 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Oct 16 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Oct 16 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Oct 16 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Oct 16 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sat Oct 16 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Oct 17 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Oct 17 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Oct 17 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Oct 17 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Oct 17 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Oct 17 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Oct 17 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Oct 17 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Oct 17 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Oct 17 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Oct 17 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Oct 17 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Oct 17 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Oct 17 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Oct 17 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Oct 17 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Oct 17 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Oct 17 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Oct 17 18:59:02 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Oct 17 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Oct 17 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Oct 17 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Oct 17 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Sun Oct 17 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Oct 18 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Oct 18 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Oct 18 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Oct 18 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Oct 18 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Oct 18 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Oct 18 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Oct 18 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Oct 18 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +Initiating a job +Mon Oct 18 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_demo +01 +psql: FATAL: database "fw_demo" does not exist +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Mon Oct 18 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-18" ignored +psql: warning: extra command-line argument "2021-10-18" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Mon Oct 18 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-18" ignored +psql: warning: extra command-line argument "2021-10-18" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Mon Oct 18 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-18" ignored +psql: warning: extra command-line argument "2021-10-18" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Mon Oct 18 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-18" ignored +psql: warning: extra command-line argument "2021-10-18" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Mon Oct 18 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-18" ignored +psql: warning: extra command-line argument "2021-10-18" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Mon Oct 18 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-18" ignored +psql: warning: extra command-line argument "2021-10-18" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Mon Oct 18 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-18" ignored +psql: warning: extra command-line argument "2021-10-18" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Mon Oct 18 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-18" ignored +psql: warning: extra command-line argument "2021-10-18" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Mon Oct 18 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-18" ignored +psql: warning: extra command-line argument "2021-10-18" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Mon Oct 18 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-18" ignored +psql: warning: extra command-line argument "2021-10-18" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Mon Oct 18 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-18" ignored +psql: warning: extra command-line argument "2021-10-18" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Mon Oct 18 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-18" ignored +psql: warning: extra command-line argument "2021-10-18" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Mon Oct 18 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-18" ignored +psql: warning: extra command-line argument "2021-10-18" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Mon Oct 18 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-18" ignored +psql: warning: extra command-line argument "2021-10-18" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Tue Oct 19 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-19" ignored +psql: warning: extra command-line argument "2021-10-19" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Tue Oct 19 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-19" ignored +psql: warning: extra command-line argument "2021-10-19" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Tue Oct 19 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-19" ignored +psql: warning: extra command-line argument "2021-10-19" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Tue Oct 19 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-19" ignored +psql: warning: extra command-line argument "2021-10-19" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Tue Oct 19 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-19" ignored +psql: warning: extra command-line argument "2021-10-19" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Tue Oct 19 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-19" ignored +psql: warning: extra command-line argument "2021-10-19" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Tue Oct 19 06:59:02 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-19" ignored +psql: warning: extra command-line argument "2021-10-19" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Tue Oct 19 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-19" ignored +psql: warning: extra command-line argument "2021-10-19" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Tue Oct 19 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-19" ignored +psql: warning: extra command-line argument "2021-10-19" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Tue Oct 19 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-19" ignored +psql: warning: extra command-line argument "2021-10-19" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Tue Oct 19 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-19" ignored +psql: warning: extra command-line argument "2021-10-19" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Tue Oct 19 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-19" ignored +psql: warning: extra command-line argument "2021-10-19" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Tue Oct 19 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-19" ignored +psql: warning: extra command-line argument "2021-10-19" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Tue Oct 19 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-19" ignored +psql: warning: extra command-line argument "2021-10-19" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Tue Oct 19 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-19" ignored +psql: warning: extra command-line argument "2021-10-19" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Tue Oct 19 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-19" ignored +psql: warning: extra command-line argument "2021-10-19" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Tue Oct 19 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-19" ignored +psql: warning: extra command-line argument "2021-10-19" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Tue Oct 19 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-19" ignored +psql: warning: extra command-line argument "2021-10-19" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Tue Oct 19 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-19" ignored +psql: warning: extra command-line argument "2021-10-19" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Tue Oct 19 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-19" ignored +psql: warning: extra command-line argument "2021-10-19" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Tue Oct 19 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-19" ignored +psql: warning: extra command-line argument "2021-10-19" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Tue Oct 19 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-19" ignored +psql: warning: extra command-line argument "2021-10-19" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Tue Oct 19 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-19" ignored +psql: warning: extra command-line argument "2021-10-19" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Tue Oct 19 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-19" ignored +psql: warning: extra command-line argument "2021-10-19" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Wed Oct 20 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-20" ignored +psql: warning: extra command-line argument "2021-10-20" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Wed Oct 20 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-20" ignored +psql: warning: extra command-line argument "2021-10-20" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Wed Oct 20 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-20" ignored +psql: warning: extra command-line argument "2021-10-20" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Wed Oct 20 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-20" ignored +psql: warning: extra command-line argument "2021-10-20" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Wed Oct 20 04:59:02 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-20" ignored +psql: warning: extra command-line argument "2021-10-20" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Wed Oct 20 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-20" ignored +psql: warning: extra command-line argument "2021-10-20" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Wed Oct 20 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-20" ignored +psql: warning: extra command-line argument "2021-10-20" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Wed Oct 20 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-20" ignored +psql: warning: extra command-line argument "2021-10-20" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Wed Oct 20 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-20" ignored +psql: warning: extra command-line argument "2021-10-20" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Wed Oct 20 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-20" ignored +psql: warning: extra command-line argument "2021-10-20" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Wed Oct 20 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-20" ignored +psql: warning: extra command-line argument "2021-10-20" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Wed Oct 20 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-20" ignored +psql: warning: extra command-line argument "2021-10-20" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Wed Oct 20 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-20" ignored +psql: warning: extra command-line argument "2021-10-20" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Wed Oct 20 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-20" ignored +psql: warning: extra command-line argument "2021-10-20" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Wed Oct 20 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-20" ignored +psql: warning: extra command-line argument "2021-10-20" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Wed Oct 20 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-20" ignored +psql: warning: extra command-line argument "2021-10-20" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Wed Oct 20 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-20" ignored +psql: warning: extra command-line argument "2021-10-20" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Wed Oct 20 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-20" ignored +psql: warning: extra command-line argument "2021-10-20" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Wed Oct 20 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-20" ignored +psql: warning: extra command-line argument "2021-10-20" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Wed Oct 20 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-20" ignored +psql: warning: extra command-line argument "2021-10-20" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Wed Oct 20 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-20" ignored +psql: warning: extra command-line argument "2021-10-20" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Wed Oct 20 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-20" ignored +psql: warning: extra command-line argument "2021-10-20" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Wed Oct 20 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-20" ignored +psql: warning: extra command-line argument "2021-10-20" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Wed Oct 20 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-20" ignored +psql: warning: extra command-line argument "2021-10-20" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Thu Oct 21 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-21" ignored +psql: warning: extra command-line argument "2021-10-21" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Thu Oct 21 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-21" ignored +psql: warning: extra command-line argument "2021-10-21" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Thu Oct 21 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-21" ignored +psql: warning: extra command-line argument "2021-10-21" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Thu Oct 21 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-21" ignored +psql: warning: extra command-line argument "2021-10-21" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Thu Oct 21 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-21" ignored +psql: warning: extra command-line argument "2021-10-21" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Thu Oct 21 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-21" ignored +psql: warning: extra command-line argument "2021-10-21" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Thu Oct 21 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-21" ignored +psql: warning: extra command-line argument "2021-10-21" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Thu Oct 21 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-21" ignored +psql: warning: extra command-line argument "2021-10-21" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Thu Oct 21 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-21" ignored +psql: warning: extra command-line argument "2021-10-21" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Thu Oct 21 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-21" ignored +psql: warning: extra command-line argument "2021-10-21" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Thu Oct 21 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-21" ignored +psql: warning: extra command-line argument "2021-10-21" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Thu Oct 21 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-21" ignored +psql: warning: extra command-line argument "2021-10-21" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Thu Oct 21 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-21" ignored +psql: warning: extra command-line argument "2021-10-21" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Thu Oct 21 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-21" ignored +psql: warning: extra command-line argument "2021-10-21" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Thu Oct 21 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-21" ignored +psql: warning: extra command-line argument "2021-10-21" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Thu Oct 21 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-21" ignored +psql: warning: extra command-line argument "2021-10-21" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Thu Oct 21 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-21" ignored +psql: warning: extra command-line argument "2021-10-21" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Thu Oct 21 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-21" ignored +psql: warning: extra command-line argument "2021-10-21" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Thu Oct 21 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-21" ignored +psql: warning: extra command-line argument "2021-10-21" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Thu Oct 21 19:59:02 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-21" ignored +psql: warning: extra command-line argument "2021-10-21" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Thu Oct 21 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-21" ignored +psql: warning: extra command-line argument "2021-10-21" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Thu Oct 21 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-21" ignored +psql: warning: extra command-line argument "2021-10-21" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Thu Oct 21 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-21" ignored +psql: warning: extra command-line argument "2021-10-21" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Thu Oct 21 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-21" ignored +psql: warning: extra command-line argument "2021-10-21" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Fri Oct 22 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-22" ignored +psql: warning: extra command-line argument "2021-10-22" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Fri Oct 22 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-22" ignored +psql: warning: extra command-line argument "2021-10-22" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Fri Oct 22 02:59:02 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-22" ignored +psql: warning: extra command-line argument "2021-10-22" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Fri Oct 22 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-22" ignored +psql: warning: extra command-line argument "2021-10-22" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Fri Oct 22 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-22" ignored +psql: warning: extra command-line argument "2021-10-22" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Fri Oct 22 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-22" ignored +psql: warning: extra command-line argument "2021-10-22" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Fri Oct 22 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-22" ignored +psql: warning: extra command-line argument "2021-10-22" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Fri Oct 22 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-22" ignored +psql: warning: extra command-line argument "2021-10-22" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Fri Oct 22 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-22" ignored +psql: warning: extra command-line argument "2021-10-22" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Fri Oct 22 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-22" ignored +psql: warning: extra command-line argument "2021-10-22" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Fri Oct 22 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-22" ignored +psql: warning: extra command-line argument "2021-10-22" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Fri Oct 22 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-22" ignored +psql: warning: extra command-line argument "2021-10-22" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Fri Oct 22 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-22" ignored +psql: warning: extra command-line argument "2021-10-22" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Fri Oct 22 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-22" ignored +psql: warning: extra command-line argument "2021-10-22" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Fri Oct 22 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-22" ignored +psql: warning: extra command-line argument "2021-10-22" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Fri Oct 22 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-22" ignored +psql: warning: extra command-line argument "2021-10-22" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Fri Oct 22 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-22" ignored +psql: warning: extra command-line argument "2021-10-22" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Fri Oct 22 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-22" ignored +psql: warning: extra command-line argument "2021-10-22" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Fri Oct 22 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-22" ignored +psql: warning: extra command-line argument "2021-10-22" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Fri Oct 22 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-22" ignored +psql: warning: extra command-line argument "2021-10-22" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Fri Oct 22 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-22" ignored +psql: warning: extra command-line argument "2021-10-22" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Fri Oct 22 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-22" ignored +psql: warning: extra command-line argument "2021-10-22" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Fri Oct 22 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-22" ignored +psql: warning: extra command-line argument "2021-10-22" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Fri Oct 22 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-22" ignored +psql: warning: extra command-line argument "2021-10-22" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sat Oct 23 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-23" ignored +psql: warning: extra command-line argument "2021-10-23" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sat Oct 23 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-23" ignored +psql: warning: extra command-line argument "2021-10-23" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sat Oct 23 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-23" ignored +psql: warning: extra command-line argument "2021-10-23" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sat Oct 23 03:59:02 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-23" ignored +psql: warning: extra command-line argument "2021-10-23" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sat Oct 23 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-23" ignored +psql: warning: extra command-line argument "2021-10-23" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sat Oct 23 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-23" ignored +psql: warning: extra command-line argument "2021-10-23" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sat Oct 23 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-23" ignored +psql: warning: extra command-line argument "2021-10-23" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sat Oct 23 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-23" ignored +psql: warning: extra command-line argument "2021-10-23" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sat Oct 23 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-23" ignored +psql: warning: extra command-line argument "2021-10-23" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sat Oct 23 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-23" ignored +psql: warning: extra command-line argument "2021-10-23" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sat Oct 23 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-23" ignored +psql: warning: extra command-line argument "2021-10-23" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sat Oct 23 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-23" ignored +psql: warning: extra command-line argument "2021-10-23" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sat Oct 23 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-23" ignored +psql: warning: extra command-line argument "2021-10-23" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sat Oct 23 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-23" ignored +psql: warning: extra command-line argument "2021-10-23" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sat Oct 23 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-23" ignored +psql: warning: extra command-line argument "2021-10-23" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sat Oct 23 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-23" ignored +psql: warning: extra command-line argument "2021-10-23" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sat Oct 23 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-23" ignored +psql: warning: extra command-line argument "2021-10-23" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sat Oct 23 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-23" ignored +psql: warning: extra command-line argument "2021-10-23" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sat Oct 23 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-23" ignored +psql: warning: extra command-line argument "2021-10-23" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sat Oct 23 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-23" ignored +psql: warning: extra command-line argument "2021-10-23" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sat Oct 23 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-23" ignored +psql: warning: extra command-line argument "2021-10-23" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sat Oct 23 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-23" ignored +psql: warning: extra command-line argument "2021-10-23" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sat Oct 23 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-23" ignored +psql: warning: extra command-line argument "2021-10-23" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sat Oct 23 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-23" ignored +psql: warning: extra command-line argument "2021-10-23" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sun Oct 24 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-24" ignored +psql: warning: extra command-line argument "2021-10-24" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sun Oct 24 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-24" ignored +psql: warning: extra command-line argument "2021-10-24" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sun Oct 24 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-24" ignored +psql: warning: extra command-line argument "2021-10-24" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sun Oct 24 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-24" ignored +psql: warning: extra command-line argument "2021-10-24" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sun Oct 24 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-24" ignored +psql: warning: extra command-line argument "2021-10-24" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sun Oct 24 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-24" ignored +psql: warning: extra command-line argument "2021-10-24" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sun Oct 24 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-24" ignored +psql: warning: extra command-line argument "2021-10-24" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sun Oct 24 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-24" ignored +psql: warning: extra command-line argument "2021-10-24" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sun Oct 24 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-24" ignored +psql: warning: extra command-line argument "2021-10-24" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sun Oct 24 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-24" ignored +psql: warning: extra command-line argument "2021-10-24" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sun Oct 24 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-24" ignored +psql: warning: extra command-line argument "2021-10-24" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sun Oct 24 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-24" ignored +psql: warning: extra command-line argument "2021-10-24" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sun Oct 24 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-24" ignored +psql: warning: extra command-line argument "2021-10-24" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sun Oct 24 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-24" ignored +psql: warning: extra command-line argument "2021-10-24" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sun Oct 24 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-24" ignored +psql: warning: extra command-line argument "2021-10-24" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sun Oct 24 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-24" ignored +psql: warning: extra command-line argument "2021-10-24" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sun Oct 24 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-24" ignored +psql: warning: extra command-line argument "2021-10-24" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sun Oct 24 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-24" ignored +psql: warning: extra command-line argument "2021-10-24" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sun Oct 24 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-24" ignored +psql: warning: extra command-line argument "2021-10-24" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sun Oct 24 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-24" ignored +psql: warning: extra command-line argument "2021-10-24" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sun Oct 24 20:59:02 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-24" ignored +psql: warning: extra command-line argument "2021-10-24" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sun Oct 24 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-24" ignored +psql: warning: extra command-line argument "2021-10-24" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sun Oct 24 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-24" ignored +psql: warning: extra command-line argument "2021-10-24" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sun Oct 24 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-24" ignored +psql: warning: extra command-line argument "2021-10-24" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Mon Oct 25 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-25" ignored +psql: warning: extra command-line argument "2021-10-25" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Mon Oct 25 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-25" ignored +psql: warning: extra command-line argument "2021-10-25" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Mon Oct 25 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-25" ignored +psql: warning: extra command-line argument "2021-10-25" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Mon Oct 25 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-25" ignored +psql: warning: extra command-line argument "2021-10-25" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Mon Oct 25 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-25" ignored +psql: warning: extra command-line argument "2021-10-25" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Mon Oct 25 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-25" ignored +psql: warning: extra command-line argument "2021-10-25" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Mon Oct 25 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-25" ignored +psql: warning: extra command-line argument "2021-10-25" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Mon Oct 25 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-25" ignored +psql: warning: extra command-line argument "2021-10-25" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Mon Oct 25 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-25" ignored +psql: warning: extra command-line argument "2021-10-25" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Mon Oct 25 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-25" ignored +psql: warning: extra command-line argument "2021-10-25" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Mon Oct 25 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-25" ignored +psql: warning: extra command-line argument "2021-10-25" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Mon Oct 25 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-25" ignored +psql: warning: extra command-line argument "2021-10-25" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Mon Oct 25 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-25" ignored +psql: warning: extra command-line argument "2021-10-25" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Mon Oct 25 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-25" ignored +psql: warning: extra command-line argument "2021-10-25" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Mon Oct 25 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-25" ignored +psql: warning: extra command-line argument "2021-10-25" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Mon Oct 25 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-25" ignored +psql: warning: extra command-line argument "2021-10-25" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Mon Oct 25 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-25" ignored +psql: warning: extra command-line argument "2021-10-25" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Mon Oct 25 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-25" ignored +psql: warning: extra command-line argument "2021-10-25" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Mon Oct 25 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-25" ignored +psql: warning: extra command-line argument "2021-10-25" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Mon Oct 25 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-25" ignored +psql: warning: extra command-line argument "2021-10-25" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Mon Oct 25 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-25" ignored +psql: warning: extra command-line argument "2021-10-25" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Mon Oct 25 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-25" ignored +psql: warning: extra command-line argument "2021-10-25" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Mon Oct 25 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-25" ignored +psql: warning: extra command-line argument "2021-10-25" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Mon Oct 25 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-25" ignored +psql: warning: extra command-line argument "2021-10-25" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Tue Oct 26 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-26" ignored +psql: warning: extra command-line argument "2021-10-26" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Tue Oct 26 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-26" ignored +psql: warning: extra command-line argument "2021-10-26" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Tue Oct 26 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-26" ignored +psql: warning: extra command-line argument "2021-10-26" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Tue Oct 26 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-26" ignored +psql: warning: extra command-line argument "2021-10-26" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Tue Oct 26 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-26" ignored +psql: warning: extra command-line argument "2021-10-26" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Tue Oct 26 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-26" ignored +psql: warning: extra command-line argument "2021-10-26" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Tue Oct 26 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-26" ignored +psql: warning: extra command-line argument "2021-10-26" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Tue Oct 26 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-26" ignored +psql: warning: extra command-line argument "2021-10-26" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Tue Oct 26 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-26" ignored +psql: warning: extra command-line argument "2021-10-26" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Tue Oct 26 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-26" ignored +psql: warning: extra command-line argument "2021-10-26" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Tue Oct 26 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-26" ignored +psql: warning: extra command-line argument "2021-10-26" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Tue Oct 26 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-26" ignored +psql: warning: extra command-line argument "2021-10-26" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Tue Oct 26 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-26" ignored +psql: warning: extra command-line argument "2021-10-26" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Tue Oct 26 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-26" ignored +psql: warning: extra command-line argument "2021-10-26" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Tue Oct 26 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-26" ignored +psql: warning: extra command-line argument "2021-10-26" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Tue Oct 26 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-26" ignored +psql: warning: extra command-line argument "2021-10-26" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Tue Oct 26 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-26" ignored +psql: warning: extra command-line argument "2021-10-26" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Tue Oct 26 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-26" ignored +psql: warning: extra command-line argument "2021-10-26" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Tue Oct 26 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-26" ignored +psql: warning: extra command-line argument "2021-10-26" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Tue Oct 26 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-26" ignored +psql: warning: extra command-line argument "2021-10-26" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Tue Oct 26 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-26" ignored +psql: warning: extra command-line argument "2021-10-26" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Tue Oct 26 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-26" ignored +psql: warning: extra command-line argument "2021-10-26" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Tue Oct 26 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-26" ignored +psql: warning: extra command-line argument "2021-10-26" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Tue Oct 26 23:59:02 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-26" ignored +psql: warning: extra command-line argument "2021-10-26" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Wed Oct 27 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-27" ignored +psql: warning: extra command-line argument "2021-10-27" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Wed Oct 27 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-27" ignored +psql: warning: extra command-line argument "2021-10-27" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Wed Oct 27 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-27" ignored +psql: warning: extra command-line argument "2021-10-27" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Wed Oct 27 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-27" ignored +psql: warning: extra command-line argument "2021-10-27" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Wed Oct 27 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-27" ignored +psql: warning: extra command-line argument "2021-10-27" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Wed Oct 27 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-27" ignored +psql: warning: extra command-line argument "2021-10-27" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Wed Oct 27 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-27" ignored +psql: warning: extra command-line argument "2021-10-27" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Wed Oct 27 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-27" ignored +psql: warning: extra command-line argument "2021-10-27" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Wed Oct 27 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-27" ignored +psql: warning: extra command-line argument "2021-10-27" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Wed Oct 27 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-27" ignored +psql: warning: extra command-line argument "2021-10-27" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Wed Oct 27 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-27" ignored +psql: warning: extra command-line argument "2021-10-27" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Wed Oct 27 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-27" ignored +psql: warning: extra command-line argument "2021-10-27" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Wed Oct 27 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-27" ignored +psql: warning: extra command-line argument "2021-10-27" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Wed Oct 27 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-27" ignored +psql: warning: extra command-line argument "2021-10-27" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Wed Oct 27 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-27" ignored +psql: warning: extra command-line argument "2021-10-27" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Wed Oct 27 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-27" ignored +psql: warning: extra command-line argument "2021-10-27" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Wed Oct 27 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-27" ignored +psql: warning: extra command-line argument "2021-10-27" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Wed Oct 27 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-27" ignored +psql: warning: extra command-line argument "2021-10-27" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Wed Oct 27 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-27" ignored +psql: warning: extra command-line argument "2021-10-27" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Wed Oct 27 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-27" ignored +psql: warning: extra command-line argument "2021-10-27" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Wed Oct 27 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-27" ignored +psql: warning: extra command-line argument "2021-10-27" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Wed Oct 27 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-27" ignored +psql: warning: extra command-line argument "2021-10-27" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Wed Oct 27 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-27" ignored +psql: warning: extra command-line argument "2021-10-27" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Wed Oct 27 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-27" ignored +psql: warning: extra command-line argument "2021-10-27" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Thu Oct 28 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-28" ignored +psql: warning: extra command-line argument "2021-10-28" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Thu Oct 28 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-28" ignored +psql: warning: extra command-line argument "2021-10-28" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Thu Oct 28 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-28" ignored +psql: warning: extra command-line argument "2021-10-28" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Thu Oct 28 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-28" ignored +psql: warning: extra command-line argument "2021-10-28" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Thu Oct 28 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-28" ignored +psql: warning: extra command-line argument "2021-10-28" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Thu Oct 28 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-28" ignored +psql: warning: extra command-line argument "2021-10-28" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Thu Oct 28 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-28" ignored +psql: warning: extra command-line argument "2021-10-28" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Thu Oct 28 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-28" ignored +psql: warning: extra command-line argument "2021-10-28" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Thu Oct 28 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-28" ignored +psql: warning: extra command-line argument "2021-10-28" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Thu Oct 28 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-28" ignored +psql: warning: extra command-line argument "2021-10-28" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Thu Oct 28 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-28" ignored +psql: warning: extra command-line argument "2021-10-28" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Thu Oct 28 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-28" ignored +psql: warning: extra command-line argument "2021-10-28" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Thu Oct 28 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-28" ignored +psql: warning: extra command-line argument "2021-10-28" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Thu Oct 28 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-28" ignored +psql: warning: extra command-line argument "2021-10-28" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Thu Oct 28 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-28" ignored +psql: warning: extra command-line argument "2021-10-28" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Thu Oct 28 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-28" ignored +psql: warning: extra command-line argument "2021-10-28" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Thu Oct 28 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-28" ignored +psql: warning: extra command-line argument "2021-10-28" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Thu Oct 28 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-28" ignored +psql: warning: extra command-line argument "2021-10-28" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Thu Oct 28 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-28" ignored +psql: warning: extra command-line argument "2021-10-28" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Thu Oct 28 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-28" ignored +psql: warning: extra command-line argument "2021-10-28" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Thu Oct 28 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-28" ignored +psql: warning: extra command-line argument "2021-10-28" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Thu Oct 28 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-28" ignored +psql: warning: extra command-line argument "2021-10-28" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Thu Oct 28 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-28" ignored +psql: warning: extra command-line argument "2021-10-28" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Thu Oct 28 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-28" ignored +psql: warning: extra command-line argument "2021-10-28" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Fri Oct 29 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-29" ignored +psql: warning: extra command-line argument "2021-10-29" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Fri Oct 29 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-29" ignored +psql: warning: extra command-line argument "2021-10-29" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Fri Oct 29 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-29" ignored +psql: warning: extra command-line argument "2021-10-29" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Fri Oct 29 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-29" ignored +psql: warning: extra command-line argument "2021-10-29" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Fri Oct 29 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-29" ignored +psql: warning: extra command-line argument "2021-10-29" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Fri Oct 29 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-29" ignored +psql: warning: extra command-line argument "2021-10-29" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Fri Oct 29 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-29" ignored +psql: warning: extra command-line argument "2021-10-29" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Fri Oct 29 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-29" ignored +psql: warning: extra command-line argument "2021-10-29" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Fri Oct 29 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-29" ignored +psql: warning: extra command-line argument "2021-10-29" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Fri Oct 29 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-29" ignored +psql: warning: extra command-line argument "2021-10-29" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Fri Oct 29 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-29" ignored +psql: warning: extra command-line argument "2021-10-29" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Fri Oct 29 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-29" ignored +psql: warning: extra command-line argument "2021-10-29" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Fri Oct 29 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-29" ignored +psql: warning: extra command-line argument "2021-10-29" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Fri Oct 29 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-29" ignored +psql: warning: extra command-line argument "2021-10-29" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Fri Oct 29 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-29" ignored +psql: warning: extra command-line argument "2021-10-29" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Fri Oct 29 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-29" ignored +psql: warning: extra command-line argument "2021-10-29" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Fri Oct 29 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-29" ignored +psql: warning: extra command-line argument "2021-10-29" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Fri Oct 29 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-29" ignored +psql: warning: extra command-line argument "2021-10-29" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Fri Oct 29 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-29" ignored +psql: warning: extra command-line argument "2021-10-29" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Fri Oct 29 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-29" ignored +psql: warning: extra command-line argument "2021-10-29" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Fri Oct 29 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-29" ignored +psql: warning: extra command-line argument "2021-10-29" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Fri Oct 29 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-29" ignored +psql: warning: extra command-line argument "2021-10-29" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Fri Oct 29 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-29" ignored +psql: warning: extra command-line argument "2021-10-29" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Fri Oct 29 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-29" ignored +psql: warning: extra command-line argument "2021-10-29" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sat Oct 30 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-30" ignored +psql: warning: extra command-line argument "2021-10-30" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sat Oct 30 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-30" ignored +psql: warning: extra command-line argument "2021-10-30" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sat Oct 30 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-30" ignored +psql: warning: extra command-line argument "2021-10-30" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sat Oct 30 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-30" ignored +psql: warning: extra command-line argument "2021-10-30" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sat Oct 30 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-30" ignored +psql: warning: extra command-line argument "2021-10-30" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sat Oct 30 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-30" ignored +psql: warning: extra command-line argument "2021-10-30" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sat Oct 30 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-30" ignored +psql: warning: extra command-line argument "2021-10-30" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sat Oct 30 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-30" ignored +psql: warning: extra command-line argument "2021-10-30" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sat Oct 30 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-30" ignored +psql: warning: extra command-line argument "2021-10-30" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sat Oct 30 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-30" ignored +psql: warning: extra command-line argument "2021-10-30" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sat Oct 30 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-30" ignored +psql: warning: extra command-line argument "2021-10-30" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sat Oct 30 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-30" ignored +psql: warning: extra command-line argument "2021-10-30" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sat Oct 30 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-30" ignored +psql: warning: extra command-line argument "2021-10-30" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sat Oct 30 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-30" ignored +psql: warning: extra command-line argument "2021-10-30" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sat Oct 30 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-30" ignored +psql: warning: extra command-line argument "2021-10-30" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sat Oct 30 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-30" ignored +psql: warning: extra command-line argument "2021-10-30" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sat Oct 30 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-30" ignored +psql: warning: extra command-line argument "2021-10-30" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sat Oct 30 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-30" ignored +psql: warning: extra command-line argument "2021-10-30" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sat Oct 30 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-30" ignored +psql: warning: extra command-line argument "2021-10-30" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sat Oct 30 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-30" ignored +psql: warning: extra command-line argument "2021-10-30" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sat Oct 30 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-30" ignored +psql: warning: extra command-line argument "2021-10-30" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sat Oct 30 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-30" ignored +psql: warning: extra command-line argument "2021-10-30" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sat Oct 30 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-30" ignored +psql: warning: extra command-line argument "2021-10-30" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sat Oct 30 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-30" ignored +psql: warning: extra command-line argument "2021-10-30" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sun Oct 31 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-31" ignored +psql: warning: extra command-line argument "2021-10-31" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sun Oct 31 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-31" ignored +psql: warning: extra command-line argument "2021-10-31" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sun Oct 31 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-31" ignored +psql: warning: extra command-line argument "2021-10-31" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sun Oct 31 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-31" ignored +psql: warning: extra command-line argument "2021-10-31" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sun Oct 31 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-31" ignored +psql: warning: extra command-line argument "2021-10-31" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sun Oct 31 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-31" ignored +psql: warning: extra command-line argument "2021-10-31" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sun Oct 31 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-31" ignored +psql: warning: extra command-line argument "2021-10-31" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sun Oct 31 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-31" ignored +psql: warning: extra command-line argument "2021-10-31" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sun Oct 31 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-31" ignored +psql: warning: extra command-line argument "2021-10-31" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sun Oct 31 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-31" ignored +psql: warning: extra command-line argument "2021-10-31" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sun Oct 31 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-31" ignored +psql: warning: extra command-line argument "2021-10-31" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sun Oct 31 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-31" ignored +psql: warning: extra command-line argument "2021-10-31" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sun Oct 31 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-31" ignored +psql: warning: extra command-line argument "2021-10-31" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sun Oct 31 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-31" ignored +psql: warning: extra command-line argument "2021-10-31" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sun Oct 31 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-31" ignored +psql: warning: extra command-line argument "2021-10-31" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sun Oct 31 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-31" ignored +psql: warning: extra command-line argument "2021-10-31" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sun Oct 31 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-31" ignored +psql: warning: extra command-line argument "2021-10-31" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sun Oct 31 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-31" ignored +psql: warning: extra command-line argument "2021-10-31" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sun Oct 31 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-31" ignored +psql: warning: extra command-line argument "2021-10-31" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sun Oct 31 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-31" ignored +psql: warning: extra command-line argument "2021-10-31" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sun Oct 31 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-31" ignored +psql: warning: extra command-line argument "2021-10-31" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sun Oct 31 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-31" ignored +psql: warning: extra command-line argument "2021-10-31" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sun Oct 31 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-31" ignored +psql: warning: extra command-line argument "2021-10-31" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sun Oct 31 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-10-31" ignored +psql: warning: extra command-line argument "2021-10-31" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Mon Nov 1 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-01" ignored +psql: warning: extra command-line argument "2021-11-01" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Mon Nov 1 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-01" ignored +psql: warning: extra command-line argument "2021-11-01" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Mon Nov 1 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-01" ignored +psql: warning: extra command-line argument "2021-11-01" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Mon Nov 1 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-01" ignored +psql: warning: extra command-line argument "2021-11-01" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Mon Nov 1 04:59:02 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-01" ignored +psql: warning: extra command-line argument "2021-11-01" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Mon Nov 1 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-01" ignored +psql: warning: extra command-line argument "2021-11-01" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Mon Nov 1 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-01" ignored +psql: warning: extra command-line argument "2021-11-01" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Mon Nov 1 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-01" ignored +psql: warning: extra command-line argument "2021-11-01" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Mon Nov 1 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-01" ignored +psql: warning: extra command-line argument "2021-11-01" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Mon Nov 1 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-01" ignored +psql: warning: extra command-line argument "2021-11-01" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Mon Nov 1 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-01" ignored +psql: warning: extra command-line argument "2021-11-01" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Mon Nov 1 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-01" ignored +psql: warning: extra command-line argument "2021-11-01" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Mon Nov 1 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-01" ignored +psql: warning: extra command-line argument "2021-11-01" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Mon Nov 1 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-01" ignored +psql: warning: extra command-line argument "2021-11-01" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Mon Nov 1 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-01" ignored +psql: warning: extra command-line argument "2021-11-01" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Mon Nov 1 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-01" ignored +psql: warning: extra command-line argument "2021-11-01" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Mon Nov 1 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-01" ignored +psql: warning: extra command-line argument "2021-11-01" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Mon Nov 1 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-01" ignored +psql: warning: extra command-line argument "2021-11-01" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Mon Nov 1 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-01" ignored +psql: warning: extra command-line argument "2021-11-01" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Mon Nov 1 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-01" ignored +psql: warning: extra command-line argument "2021-11-01" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Mon Nov 1 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-01" ignored +psql: warning: extra command-line argument "2021-11-01" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Mon Nov 1 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-01" ignored +psql: warning: extra command-line argument "2021-11-01" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Mon Nov 1 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-01" ignored +psql: warning: extra command-line argument "2021-11-01" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Mon Nov 1 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-01" ignored +psql: warning: extra command-line argument "2021-11-01" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Tue Nov 2 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-02" ignored +psql: warning: extra command-line argument "2021-11-02" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Tue Nov 2 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-02" ignored +psql: warning: extra command-line argument "2021-11-02" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Tue Nov 2 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-02" ignored +psql: warning: extra command-line argument "2021-11-02" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Tue Nov 2 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-02" ignored +psql: warning: extra command-line argument "2021-11-02" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Tue Nov 2 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-02" ignored +psql: warning: extra command-line argument "2021-11-02" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Tue Nov 2 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-02" ignored +psql: warning: extra command-line argument "2021-11-02" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Tue Nov 2 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-02" ignored +psql: warning: extra command-line argument "2021-11-02" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Tue Nov 2 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-02" ignored +psql: warning: extra command-line argument "2021-11-02" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Tue Nov 2 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-02" ignored +psql: warning: extra command-line argument "2021-11-02" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Tue Nov 2 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-02" ignored +psql: warning: extra command-line argument "2021-11-02" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Tue Nov 2 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-02" ignored +psql: warning: extra command-line argument "2021-11-02" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Tue Nov 2 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-02" ignored +psql: warning: extra command-line argument "2021-11-02" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Tue Nov 2 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-02" ignored +psql: warning: extra command-line argument "2021-11-02" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Tue Nov 2 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-02" ignored +psql: warning: extra command-line argument "2021-11-02" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Tue Nov 2 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-02" ignored +psql: warning: extra command-line argument "2021-11-02" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Tue Nov 2 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-02" ignored +psql: warning: extra command-line argument "2021-11-02" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Tue Nov 2 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-02" ignored +psql: warning: extra command-line argument "2021-11-02" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Tue Nov 2 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-02" ignored +psql: warning: extra command-line argument "2021-11-02" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Tue Nov 2 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-02" ignored +psql: warning: extra command-line argument "2021-11-02" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Tue Nov 2 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-02" ignored +psql: warning: extra command-line argument "2021-11-02" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Tue Nov 2 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-02" ignored +psql: warning: extra command-line argument "2021-11-02" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Tue Nov 2 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-02" ignored +psql: warning: extra command-line argument "2021-11-02" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Tue Nov 2 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-02" ignored +psql: warning: extra command-line argument "2021-11-02" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Tue Nov 2 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-02" ignored +psql: warning: extra command-line argument "2021-11-02" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Wed Nov 3 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-03" ignored +psql: warning: extra command-line argument "2021-11-03" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Wed Nov 3 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-03" ignored +psql: warning: extra command-line argument "2021-11-03" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Wed Nov 3 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-03" ignored +psql: warning: extra command-line argument "2021-11-03" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Wed Nov 3 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-03" ignored +psql: warning: extra command-line argument "2021-11-03" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Wed Nov 3 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-03" ignored +psql: warning: extra command-line argument "2021-11-03" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Wed Nov 3 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-03" ignored +psql: warning: extra command-line argument "2021-11-03" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Wed Nov 3 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-03" ignored +psql: warning: extra command-line argument "2021-11-03" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Wed Nov 3 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-03" ignored +psql: warning: extra command-line argument "2021-11-03" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Wed Nov 3 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-03" ignored +psql: warning: extra command-line argument "2021-11-03" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Wed Nov 3 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-03" ignored +psql: warning: extra command-line argument "2021-11-03" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Wed Nov 3 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-03" ignored +psql: warning: extra command-line argument "2021-11-03" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Wed Nov 3 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-03" ignored +psql: warning: extra command-line argument "2021-11-03" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Wed Nov 3 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-03" ignored +psql: warning: extra command-line argument "2021-11-03" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Wed Nov 3 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-03" ignored +psql: warning: extra command-line argument "2021-11-03" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Wed Nov 3 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-03" ignored +psql: warning: extra command-line argument "2021-11-03" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Wed Nov 3 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-03" ignored +psql: warning: extra command-line argument "2021-11-03" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Wed Nov 3 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-03" ignored +psql: warning: extra command-line argument "2021-11-03" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Wed Nov 3 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-03" ignored +psql: warning: extra command-line argument "2021-11-03" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Wed Nov 3 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-03" ignored +psql: warning: extra command-line argument "2021-11-03" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Wed Nov 3 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-03" ignored +psql: warning: extra command-line argument "2021-11-03" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Wed Nov 3 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-03" ignored +psql: warning: extra command-line argument "2021-11-03" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Wed Nov 3 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-03" ignored +psql: warning: extra command-line argument "2021-11-03" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Wed Nov 3 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-03" ignored +psql: warning: extra command-line argument "2021-11-03" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Wed Nov 3 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-03" ignored +psql: warning: extra command-line argument "2021-11-03" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Thu Nov 4 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-04" ignored +psql: warning: extra command-line argument "2021-11-04" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Thu Nov 4 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-04" ignored +psql: warning: extra command-line argument "2021-11-04" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Thu Nov 4 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-04" ignored +psql: warning: extra command-line argument "2021-11-04" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Thu Nov 4 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-04" ignored +psql: warning: extra command-line argument "2021-11-04" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Thu Nov 4 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-04" ignored +psql: warning: extra command-line argument "2021-11-04" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Thu Nov 4 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-04" ignored +psql: warning: extra command-line argument "2021-11-04" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Thu Nov 4 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-04" ignored +psql: warning: extra command-line argument "2021-11-04" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Thu Nov 4 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-04" ignored +psql: warning: extra command-line argument "2021-11-04" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Thu Nov 4 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-04" ignored +psql: warning: extra command-line argument "2021-11-04" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Thu Nov 4 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-04" ignored +psql: warning: extra command-line argument "2021-11-04" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Thu Nov 4 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-04" ignored +psql: warning: extra command-line argument "2021-11-04" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Thu Nov 4 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-04" ignored +psql: warning: extra command-line argument "2021-11-04" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Thu Nov 4 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-04" ignored +psql: warning: extra command-line argument "2021-11-04" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Thu Nov 4 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-04" ignored +psql: warning: extra command-line argument "2021-11-04" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Thu Nov 4 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-04" ignored +psql: warning: extra command-line argument "2021-11-04" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Thu Nov 4 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-04" ignored +psql: warning: extra command-line argument "2021-11-04" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Thu Nov 4 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-04" ignored +psql: warning: extra command-line argument "2021-11-04" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Thu Nov 4 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-04" ignored +psql: warning: extra command-line argument "2021-11-04" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Thu Nov 4 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-04" ignored +psql: warning: extra command-line argument "2021-11-04" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Thu Nov 4 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-04" ignored +psql: warning: extra command-line argument "2021-11-04" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Thu Nov 4 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-04" ignored +psql: warning: extra command-line argument "2021-11-04" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Thu Nov 4 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-04" ignored +psql: warning: extra command-line argument "2021-11-04" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Thu Nov 4 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-04" ignored +psql: warning: extra command-line argument "2021-11-04" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Thu Nov 4 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-04" ignored +psql: warning: extra command-line argument "2021-11-04" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Fri Nov 5 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-05" ignored +psql: warning: extra command-line argument "2021-11-05" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Fri Nov 5 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-05" ignored +psql: warning: extra command-line argument "2021-11-05" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Fri Nov 5 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-05" ignored +psql: warning: extra command-line argument "2021-11-05" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Fri Nov 5 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-05" ignored +psql: warning: extra command-line argument "2021-11-05" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Fri Nov 5 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-05" ignored +psql: warning: extra command-line argument "2021-11-05" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Fri Nov 5 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-05" ignored +psql: warning: extra command-line argument "2021-11-05" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Fri Nov 5 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-05" ignored +psql: warning: extra command-line argument "2021-11-05" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Fri Nov 5 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-05" ignored +psql: warning: extra command-line argument "2021-11-05" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Fri Nov 5 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-05" ignored +psql: warning: extra command-line argument "2021-11-05" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Fri Nov 5 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-05" ignored +psql: warning: extra command-line argument "2021-11-05" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Fri Nov 5 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-05" ignored +psql: warning: extra command-line argument "2021-11-05" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Fri Nov 5 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-05" ignored +psql: warning: extra command-line argument "2021-11-05" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Fri Nov 5 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-05" ignored +psql: warning: extra command-line argument "2021-11-05" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Fri Nov 5 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-05" ignored +psql: warning: extra command-line argument "2021-11-05" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Fri Nov 5 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-05" ignored +psql: warning: extra command-line argument "2021-11-05" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Fri Nov 5 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-05" ignored +psql: warning: extra command-line argument "2021-11-05" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Fri Nov 5 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-05" ignored +psql: warning: extra command-line argument "2021-11-05" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Fri Nov 5 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-05" ignored +psql: warning: extra command-line argument "2021-11-05" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Fri Nov 5 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-05" ignored +psql: warning: extra command-line argument "2021-11-05" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Fri Nov 5 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-05" ignored +psql: warning: extra command-line argument "2021-11-05" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Fri Nov 5 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-05" ignored +psql: warning: extra command-line argument "2021-11-05" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Fri Nov 5 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-05" ignored +psql: warning: extra command-line argument "2021-11-05" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Fri Nov 5 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-05" ignored +psql: warning: extra command-line argument "2021-11-05" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Fri Nov 5 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-05" ignored +psql: warning: extra command-line argument "2021-11-05" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sat Nov 6 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-06" ignored +psql: warning: extra command-line argument "2021-11-06" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sat Nov 6 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-06" ignored +psql: warning: extra command-line argument "2021-11-06" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sat Nov 6 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-06" ignored +psql: warning: extra command-line argument "2021-11-06" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sat Nov 6 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-06" ignored +psql: warning: extra command-line argument "2021-11-06" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sat Nov 6 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-06" ignored +psql: warning: extra command-line argument "2021-11-06" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sat Nov 6 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-06" ignored +psql: warning: extra command-line argument "2021-11-06" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sat Nov 6 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-06" ignored +psql: warning: extra command-line argument "2021-11-06" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sat Nov 6 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-06" ignored +psql: warning: extra command-line argument "2021-11-06" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sat Nov 6 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-06" ignored +psql: warning: extra command-line argument "2021-11-06" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sat Nov 6 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-06" ignored +psql: warning: extra command-line argument "2021-11-06" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sat Nov 6 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-06" ignored +psql: warning: extra command-line argument "2021-11-06" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sat Nov 6 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-06" ignored +psql: warning: extra command-line argument "2021-11-06" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sat Nov 6 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-06" ignored +psql: warning: extra command-line argument "2021-11-06" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sat Nov 6 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-06" ignored +psql: warning: extra command-line argument "2021-11-06" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sat Nov 6 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-06" ignored +psql: warning: extra command-line argument "2021-11-06" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sat Nov 6 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-06" ignored +psql: warning: extra command-line argument "2021-11-06" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sat Nov 6 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-06" ignored +psql: warning: extra command-line argument "2021-11-06" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sat Nov 6 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-06" ignored +psql: warning: extra command-line argument "2021-11-06" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sat Nov 6 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-06" ignored +psql: warning: extra command-line argument "2021-11-06" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sat Nov 6 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-06" ignored +psql: warning: extra command-line argument "2021-11-06" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sat Nov 6 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-06" ignored +psql: warning: extra command-line argument "2021-11-06" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sat Nov 6 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-06" ignored +psql: warning: extra command-line argument "2021-11-06" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sat Nov 6 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-06" ignored +psql: warning: extra command-line argument "2021-11-06" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sat Nov 6 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-06" ignored +psql: warning: extra command-line argument "2021-11-06" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sun Nov 7 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-07" ignored +psql: warning: extra command-line argument "2021-11-07" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sun Nov 7 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-07" ignored +psql: warning: extra command-line argument "2021-11-07" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sun Nov 7 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-07" ignored +psql: warning: extra command-line argument "2021-11-07" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sun Nov 7 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-07" ignored +psql: warning: extra command-line argument "2021-11-07" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sun Nov 7 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-07" ignored +psql: warning: extra command-line argument "2021-11-07" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sun Nov 7 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-07" ignored +psql: warning: extra command-line argument "2021-11-07" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sun Nov 7 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-07" ignored +psql: warning: extra command-line argument "2021-11-07" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sun Nov 7 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-07" ignored +psql: warning: extra command-line argument "2021-11-07" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sun Nov 7 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-07" ignored +psql: warning: extra command-line argument "2021-11-07" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sun Nov 7 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-07" ignored +psql: warning: extra command-line argument "2021-11-07" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sun Nov 7 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-07" ignored +psql: warning: extra command-line argument "2021-11-07" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sun Nov 7 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-07" ignored +psql: warning: extra command-line argument "2021-11-07" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sun Nov 7 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-07" ignored +psql: warning: extra command-line argument "2021-11-07" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sun Nov 7 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-07" ignored +psql: warning: extra command-line argument "2021-11-07" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sun Nov 7 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-07" ignored +psql: warning: extra command-line argument "2021-11-07" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sun Nov 7 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-07" ignored +psql: warning: extra command-line argument "2021-11-07" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sun Nov 7 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-07" ignored +psql: warning: extra command-line argument "2021-11-07" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sun Nov 7 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-07" ignored +psql: warning: extra command-line argument "2021-11-07" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sun Nov 7 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-07" ignored +psql: warning: extra command-line argument "2021-11-07" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sun Nov 7 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-07" ignored +psql: warning: extra command-line argument "2021-11-07" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sun Nov 7 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-07" ignored +psql: warning: extra command-line argument "2021-11-07" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sun Nov 7 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-07" ignored +psql: warning: extra command-line argument "2021-11-07" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sun Nov 7 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-07" ignored +psql: warning: extra command-line argument "2021-11-07" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Sun Nov 7 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-07" ignored +psql: warning: extra command-line argument "2021-11-07" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Mon Nov 8 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-08" ignored +psql: warning: extra command-line argument "2021-11-08" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Mon Nov 8 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-08" ignored +psql: warning: extra command-line argument "2021-11-08" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Mon Nov 8 02:59:02 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-08" ignored +psql: warning: extra command-line argument "2021-11-08" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Mon Nov 8 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-08" ignored +psql: warning: extra command-line argument "2021-11-08" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Mon Nov 8 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-08" ignored +psql: warning: extra command-line argument "2021-11-08" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Mon Nov 8 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-08" ignored +psql: warning: extra command-line argument "2021-11-08" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Mon Nov 8 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-08" ignored +psql: warning: extra command-line argument "2021-11-08" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Mon Nov 8 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-08" ignored +psql: warning: extra command-line argument "2021-11-08" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Mon Nov 8 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-08" ignored +psql: warning: extra command-line argument "2021-11-08" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Mon Nov 8 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-08" ignored +psql: warning: extra command-line argument "2021-11-08" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Mon Nov 8 10:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-08" ignored +psql: warning: extra command-line argument "2021-11-08" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Mon Nov 8 11:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-08" ignored +psql: warning: extra command-line argument "2021-11-08" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Mon Nov 8 12:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-08" ignored +psql: warning: extra command-line argument "2021-11-08" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Mon Nov 8 13:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-08" ignored +psql: warning: extra command-line argument "2021-11-08" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Mon Nov 8 14:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-08" ignored +psql: warning: extra command-line argument "2021-11-08" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Mon Nov 8 15:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-08" ignored +psql: warning: extra command-line argument "2021-11-08" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Mon Nov 8 16:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-08" ignored +psql: warning: extra command-line argument "2021-11-08" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Mon Nov 8 17:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-08" ignored +psql: warning: extra command-line argument "2021-11-08" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Mon Nov 8 18:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-08" ignored +psql: warning: extra command-line argument "2021-11-08" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Mon Nov 8 19:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-08" ignored +psql: warning: extra command-line argument "2021-11-08" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Mon Nov 8 20:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-08" ignored +psql: warning: extra command-line argument "2021-11-08" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Mon Nov 8 21:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-08" ignored +psql: warning: extra command-line argument "2021-11-08" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Mon Nov 8 22:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-08" ignored +psql: warning: extra command-line argument "2021-11-08" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Mon Nov 8 23:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-08" ignored +psql: warning: extra command-line argument "2021-11-08" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Tue Nov 9 00:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-09" ignored +psql: warning: extra command-line argument "2021-11-09" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Tue Nov 9 01:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-09" ignored +psql: warning: extra command-line argument "2021-11-09" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Tue Nov 9 02:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-09" ignored +psql: warning: extra command-line argument "2021-11-09" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Tue Nov 9 03:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-09" ignored +psql: warning: extra command-line argument "2021-11-09" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Tue Nov 9 04:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-09" ignored +psql: warning: extra command-line argument "2021-11-09" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Tue Nov 9 05:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-09" ignored +psql: warning: extra command-line argument "2021-11-09" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Tue Nov 9 06:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-09" ignored +psql: warning: extra command-line argument "2021-11-09" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Tue Nov 9 07:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-09" ignored +psql: warning: extra command-line argument "2021-11-09" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Tue Nov 9 08:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-09" ignored +psql: warning: extra command-line argument "2021-11-09" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 +/home/compegence +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +Initiating a job +Tue Nov 9 09:59:01 UTC 2021 +/home/compegence +localhost +postgres +j3(jLBq}e +postgresql://postgres:j3(jLBq}e@localhost/fw_dev +01 +chkrun is 1 +continuing +INSERT 0 1 +monthly +01 +Populating monthly job into fw_jobctl_runschedule_jobstep +INSERT 0 1 +monthly +UPDATE 1 +/home/compegence/dev/retail/data_rollup_v1.0.sql + +SQL + + /home/compegence/dev/retail/data_rollup_v1.0.sql started +UPDATE 1 +psql: warning: extra command-line argument "2345" ignored +psql: warning: extra command-line argument "postgres" ignored +psql: warning: extra command-line argument "j3(jLBq}e" ignored +psql: warning: extra command-line argument "fw_dev" ignored +psql: warning: extra command-line argument "10" ignored +psql: warning: extra command-line argument "1" ignored +psql: warning: extra command-line argument "=2021-11-09" ignored +psql: warning: extra command-line argument "2021-11-09" ignored +psql: warning: extra command-line argument "{}" ignored +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; +UPDATE 16603 +/* update fw_ods_viz_data_generic data excluding waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; +UPDATE 3059 +/* update waterfall data */ +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; +UPDATE 9 +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; +UPDATE 9 +UPDATE 1 + /home/compegence/dev/retail/data_rollup_v1.0.sql Ended +UPDATE 1 diff --git a/retail_monthly_job_load.sh b/retail_monthly_job_load.sh new file mode 100755 index 0000000..138516a --- /dev/null +++ b/retail_monthly_job_load.sh @@ -0,0 +1,98 @@ +#!/bin/bash -e + +#Declare the Associative array +declare -A credentials + +HOME_DIR=$HOME +echo $HOME_DIR +CONF_DIR=$HOME_DIR/conf + +#Server credentials file path +input_file=$CONF_DIR/server_credentials.txt + +#Read the credentials from the server_credentials from conf folders +#Remove Blank lines and comment starting with # +while IFS="=" read -r key value; do + credentials[$key]=$value + done < <(sed -e '/^\s*$/ d' -e '/^#/ d' $input_file) + +#CODS credentials +host=${credentials[host]} +echo ${credentials[host]} +user=${credentials[user]} +echo ${credentials[user]} +pwd=${credentials[password]} +echo ${credentials[password]} +port=${credentials[port]} +dbname=${credentials[dbname1]} + +#let i=0 +#set -A arr +#BASE_CODS_ARGUMENTS="--host=$cods_host --user=$cods_user --password=$cods_pwd --port=$3306" +#BASE_ODS_ARGUMENTS="--user=$user --password=$pwd --host=$host" +psql_base_arg="postgresql://$user:$pwd@$host/$dbname" +#psql_base_arg="postgresql://postgres:j3(jLBq}e@localhost/ffm_k2" +echo $psql_base_arg + +#ifStart=`date '+%d'` +ifStart="01" +echo "$ifStart" + + +#Check today is sunday. Scheduling weekly job +today="$(date +%a)" +sun="Mon" + +#inserting into fw_core.fw_jobctl_runschedule +chkrun=$(psql $psql_base_arg -t -c "select count(*) from fw_core.fw_jobctl_jobstep_master where client_id=10 and function_id=1 and run_frequency='monthly' and active_flag=true;") +echo "chkrun is $chkrun" +if [[ $chkrun -gt 0 ]]; then + echo "continuing"; + psql $psql_base_arg -c "INSERT INTO fw_core.fw_jobctl_runschedule +(client_id, function_id, run_schedule_date, run_frequency, start_time, begin_status, created_by, updated_by, create_timestamp, update_timestamp) +select client_id, function_id,now(),run_frequency,now(),'started','developer','developer',now(),now() from fw_core.fw_jobctl_jobstep_master +where active_flag='TRUE' group by client_id, function_id, run_frequency limit 1;" + +else + echo " No active job for monthly for client_id=10" + exit 1; +fi + +while IFS="|" read -a line +do + run_frequency=${line[0]} + job_scheduling_day="${line[1]}" + +echo "$run_frequency" +echo "$job_scheduling_day" +if [ $run_frequency == "daily" ] ; then + echo "Populating daily job into fw_jobctl_runschedule_jobstep" + + psql $psql_base_arg -c"insert into fw_core.fw_jobctl_runschedule_jobstep(client_id, function_id,run_schedule_id, run_frequency, job_id, step_id, job_step_run_dependency_seuqence, job_name, step_name,job_script,job_function_name,job_fun_param, job_scope, job_scope_qualifier, run_schedule_date,data_from_date, data_to_date, create_timestamp, update_timestamp,latest_flag) +select a.client_id, a.function_id, b.syspk,a.run_frequency, job_id, step_id, job_step_run_dependency_seuqence, job_name, step_name, job_script,job_function_name,job_fun_param, +job_scope, job_scope_qualifier, now(),current_date,current_date,now(),now(),true +from fw_core.fw_jobctl_jobstep_master a join fw_core.fw_jobctl_runschedule b +on a.client_id=b.client_id and a.function_id=b.function_id and a.run_frequency=b.run_frequency and b.begin_status = 'started' and b.end_status is null +where a.active_flag='true' and a.run_frequency='daily' and a.job_scheduling_day='daily' +order by a.client_id,a.function_id,a.job_id,a.step_id,a.job_step_run_dependency_seuqence;" + +elif [ $run_frequency == "monthly" ] && [ $ifStart == "$job_scheduling_day" ] ; then + echo "Populating monthly job into fw_jobctl_runschedule_jobstep" + + psql $psql_base_arg -c"insert into fw_core.fw_jobctl_runschedule_jobstep(client_id, function_id, run_frequency, job_id, step_id, job_step_run_dependency_seuqence, job_name, step_name,job_script,job_function_name,job_fun_param, job_scope, job_scope_qualifier, run_schedule_id,run_schedule_date,data_from_date, data_to_date, create_timestamp, update_timestamp,latest_flag) +select client_id, function_id, run_frequency, job_id, step_id, job_step_run_dependency_seuqence, job_name, step_name, job_script,job_function_name,job_fun_param, +job_scope, job_scope_qualifier, row_number() over (),now(),current_date,current_date,now(),now(),true +from fw_core.fw_jobctl_jobstep_master where active_flag='true' and run_frequency='$run_frequency' and job_scheduling_day='$job_scheduling_day' order by client_id,function_id,job_id,step_id,job_step_run_dependency_seuqence;" + +elif [ $run_frequency == "weekly" ] && [ "${today}" = "$job_scheduling_day" ] ; then + echo "Populating weekly job into fw_jobctl_runschedule_jobstep" + + psql $psql_base_arg -c"insert into fw_core..fw_jobctl_runschedule_jobstep(client_id, function_id, run_frequency, job_id, step_id, job_step_run_dependency_seuqence, job_name, step_name,job_script,job_function_name,job_fun_param, job_scope, job_scope_qualifier, run_schedule_id,run_schedule_date,data_from_date, data_to_date, create_timestamp, update_timestamp,latest_flag) +select client_id, function_id, run_frequency, job_id, step_id, job_step_run_dependency_seuqence, job_name, step_name, job_script,job_function_name,job_fun_param, +job_scope, job_scope_qualifier, row_number() over (),now(),current_date,current_date,now(),now(),true +from fw_core.fw_jobctl_jobstep_master where active_flag='true' and run_frequency='$run_frequency' and job_scheduling_day='$job_scheduling_day' order by client_id,function_id,job_id,step_id,job_step_run_dependency_seuqence;" + +fi +done < <(psql $psql_base_arg -At -c"select distinct run_frequency,job_scheduling_day from fw_core.fw_jobctl_jobstep_master where active_flag=true order by run_frequency ") + + diff --git a/retail_update_run.sh b/retail_update_run.sh new file mode 100755 index 0000000..d9b8ab4 --- /dev/null +++ b/retail_update_run.sh @@ -0,0 +1,128 @@ +#!/bin/bash -e + +#Declare the Associative array +declare -A credentials + +HOME_DIR=$HOME +echo $HOME_DIR +CONF_DIR=$HOME_DIR/conf + +#Server credentials file path +input_file=$CONF_DIR/server_credentials.txt + +#Read the credentials from the server_credentials from conf folders +#Remove Blank lines and comment starting with # +while IFS="=" read -r key value; do + credentials[$key]=$value + done < <(sed -e '/^\s*$/ d' -e '/^#/ d' $input_file) + # done < <(sed -e '/^\s*$/ d' -e '/^#/ d' $input_file) + +#CODS credentials +host=${credentials[host]} +#echo ${credentials[host]} +user=${credentials[user]} +#echo ${credentials[user]} +pwd=${credentials[password]} +#echo ${credentials[password]} +port=${credentials[port]} +dbname=${credentials[dbname1]} + +psql_base_arg="postgresql://$user:$pwd@$host/$dbname" + +echo $psql_base_arg + +echo "Initiating a job" +date +/home/compegence/dev/retail/retail_monthly_job_load.sh + + +#while loop for each run_frequency +while IFS="|" read -a outer +do +client_id=${outer[0]} +function_id=${outer[1]} +run_frequency=${outer[2]} + +echo "$run_frequency" +#Update start_time for fw_jobctl_runschedule + + psql $psql_base_arg -c "update fw_core.fw_jobctl_runschedule set start_time=now(),begin_status='started' where client_id=$client_id and function_id=$function_id and run_frequency='$run_frequency' and end_status is null " + + +#while loop for each job & step +while IFS="|" read -a inner +do + job_name=${inner[4]} + step_name+=(${inner[5]}) + job_script=${inner[6]} + job_function_name=${inner[7]} + echo "$job_function_name" + #remove first and last char - curly braces + job_fun_param=${inner[8]:1:-1} + data_from_date==${inner[10]} + data_to_date=${inner[11]} + job_scope=${inner[12]} + job_scope_qualifier=${inner[13]} +#echo $data_from_date,$data_to_date,$job_scope,$job_scope_qualifier +param='' +var1=' ' +echo "$job_fun_param" +echo "$job_script" +#reading array column and spliting each var and appending $ & space + IFS=',' read -r -a ADDR <<< "$job_fun_param" +for i in "${ADDR[@]}"; do + echo $i + param=$param$i$var1 + done + + echo $param + + if [ $job_script == "R" ] ; then + + echo " $job_function_name started" + + psql $psql_base_arg -c "update fw_core.fw_jobctl_runschedule_jobstep set jobstep_start_time=now(),begin_status='started',job_status='started' where job_function_name='$job_function_name' and client_id=$client_id and function_id=$function_id and run_frequency='$run_frequency' and latest_flag='true' and job_script='R'" + + #Rscript /home/compegence/R_code/$job_function_name $host $port $user $pwd $dbname $param $client_id $function_id $data_from_date $data_to_date $job_scope $job_scope_qualifier + echo "$job_scope_qualifier" + Rscript /home/compegence/R_code/$job_function_name $host $port $user $pwd $dbname $param $client_id $function_id "2017-01-01" "2020-12-31" $job_scope $job_scope_qualifier + psql $psql_base_arg -c "update fw_core.fw_jobctl_runschedule_jobstep set jobstep_end_time=now(),end_status='completed',job_status='completed',latest_flag='false' where job_function_name='$job_function_name' and client_id=$client_id and function_id=$function_id and run_frequency='$run_frequency' and latest_flag='true' and job_script='R'" + + echo " $job_function_name Ended" + + elif [ $job_script == "SQL" ] ; then + + echo " $job_function_name started" + + psql $psql_base_arg -c "update fw_core.fw_jobctl_runschedule_jobstep set jobstep_start_time=now(),begin_status='started',job_status='started' where job_function_name='$job_function_name' and client_id=$client_id and function_id=$function_id and run_frequency='$run_frequency' and latest_flag='true' and job_script='SQL'" + + # psql $psql_base_arg -a -f /home/compegence/R_code/$job_function_name $host $port $user $pwd $dbname $param $client_id $function_id $data_from_date $data_to_date $job_scope $job_scope_qualifier + + psql $psql_base_arg -a -f $job_function_name $host $port $user $pwd $dbname $param $client_id $function_id $data_from_date $data_to_date $job_scope $job_scope_qualifier + + psql $psql_base_arg -c "update fw_core.fw_jobctl_runschedule_jobstep set jobstep_end_time=now(),end_status='completed',job_status='completed',latest_flag='false' where job_function_name='$job_function_name' and client_id=$client_id and function_id=$function_id and run_frequency='$run_frequency' and latest_flag='true' and job_script='SQL'" + + echo " $job_function_name Ended" + + elif [ $job_script == "JAVA" ] ; then + + echo " $job_function_name started" + + psql $psql_base_arg -c "update fw_core.fw_jobctl_runschedule_jobstep set jobstep_start_time=now(),begin_status='started',job_status='started' where job_function_name='$job_function_name' and client_id=$client_id and function_id=$function_id and run_frequency='$run_frequency' and latest_flag='true' and job_script='JAVA'" + +# java -jar /home/compegence/mmt_code/generic_table/target/ex1-1.0-SNAPSHOT-shaded.jar + # java -jar $job_function_name +psql $psql_base_arg -c "update fw_core.fw_jobctl_runschedule_jobstep set jobstep_end_time=now(),end_status='completed',job_status='completed',latest_flag='false' where job_function_name='$job_function_name' and client_id=$client_id and function_id=$function_id and run_frequency='$run_frequency' and latest_flag='true' and job_script='JAVA'" + + echo " $job_function_name Ended" + + fi + +done < <(psql $psql_base_arg -At -c"select client_id,function_id,run_frequency,run_schedule_id,job_name,step_name,job_script,job_function_name,job_fun_param,job_step_run_dependency_seuqence,data_from_date,data_to_date,job_scope,job_scope_qualifier from fw_core.fw_jobctl_runschedule_jobstep where latest_flag='true' and client_id=$client_id and function_id=$function_id and run_frequency='$run_frequency' order by run_schedule_id,job_step_run_dependency_seuqence; ") + +#Update end_time for fw_jobctl_runschedule + psql $psql_base_arg -c "update fw_core.fw_jobctl_runschedule set end_time=now(),end_status='stg1_completed' where client_id=$client_id and function_id=$function_id and run_frequency='$run_frequency' and end_status is null " + +done < <(psql $psql_base_arg -At -c"select distinct client_id,function_id,run_frequency from fw_core.fw_jobctl_runschedule_jobstep where latest_flag='true' order by client_id,function_id,run_frequency ") + + diff --git a/sql/data_rollup_v1.0.sql b/sql/data_rollup_v1.0.sql new file mode 100755 index 0000000..5738a8a --- /dev/null +++ b/sql/data_rollup_v1.0.sql @@ -0,0 +1,74 @@ +update fw_ods.fw_ods_monthly ods +set d4l1_date = new_date, +d4l1_yyyy = new_year, +d4l1_qq = new_quarter, +d4l1_mm = new_month, +d4l1_yyyymm = new_yyyymm::int, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(d4l1_date))::date max_d4l1 from fw_ods.fw_ods_monthly where client_id = 10 +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) + +select distinct d4l1_date, (d4l1_date + num_month * interval '1 months')::date new_date, +date_part('year', (d4l1_date + num_month * interval '1 months')::date) new_year, +date_part('quarter', (d4l1_date + num_month * interval '1 months')::date) new_quarter, +date_part('month', (d4l1_date + num_month * interval '1 months')::date) new_month, +concat(date_part('year', (d4l1_date + num_month * interval '1 months')::date),lpad(date_part('month', (d4l1_date + num_month * interval '1 months')::date)::varchar,2,'0')) new_yyyymm +from fw_ods.fw_ods_monthly a, tbl_results b where client_id = 10 +) new +where ods.d4l1_date = new.d4l1_date and ods.client_id = 10; + +/* update fw_ods_viz_data_generic data excluding waterfall data */ + +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name <> 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) + +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name <> 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name <> 'Waterfall'; + +/* update waterfall data */ + +update fw_ods.fw_ods_viz_data_generic ods +set from_date = new_date_from, +to_date = new_date_to, +update_timestamp = now() +from +( +with tbl_results as ( +with tbl as ( +select date_trunc('month', max(from_date))::date max_d4l1 from fw_ods.fw_ods_viz_data_generic where client_id = 10 and viztype_name= 'Waterfall' +) +select (EXTRACT(year FROM age(now(),max_d4l1))*12 + EXTRACT(month FROM age(now(),max_d4l1))-1) num_month from tbl +) +select distinct from_date, to_date, +(from_date + num_month * interval '1 months')::date new_date_from, +(to_date + num_month * interval '1 months')::date new_date_to +from fw_ods.fw_ods_viz_data_generic a, tbl_results b where client_id = 10 and viztype_name= 'Waterfall' +) new +where ods.from_date = new.from_date and ods.to_date = new.to_date and ods.client_id = 10 and viztype_name= 'Waterfall'; + +update fw_ods.fw_ods_viz_data_generic ods +set va1 = concat(EXTRACT(year FROM from_date),'-', lpad(EXTRACT(month FROM from_date)::text,2,'0')), +va2 = concat(EXTRACT(year FROM (from_date - 1 * interval '1 months')::date),'-', lpad(EXTRACT(month FROM (from_date - 1 * interval '1 months')::date)::text,2,'0')) +where client_id =10 and viztype_name= 'Waterfall'; + +update fw_core.fw_jobctl_runschedule_jobstep set end_status_note ='retail_update_completed', end_status='success',end_time = now() where job_script_type = 'sql' and latest_runschedule_flag='1' and job_name= 'Retail Data Update'; diff --git a/sql/scripts/job_load.sh b/sql/scripts/job_load.sh new file mode 100755 index 0000000..1c920ca --- /dev/null +++ b/sql/scripts/job_load.sh @@ -0,0 +1,105 @@ +#/**************************************************************** +#****** ForeWarn Licensing and / or usage Terms and Conditions ***** +#ForeWarn. The NextGen Insights Solution Platform + +#Copyright ▒ 2021 COMPEGENCE. All Rights Reserved + +#ForeWarn is a product of COMPEGENCE. + +#To be used only with a valid license from COMPEGENCE + +#www.compegence.com info@compegence.com +#****************************************************************/ + + +#!/bin/bash -e +#HOME="/home/compegence/customer" +#Directories +homeDir=$HOME/dev/retail +configDir=$homeDir/conf +input_file=$configDir/server_credentials.txt +declare -A credentials +while IFS="=" read -r key value; do + credentials[$key]=$value + done < <( sed -e '/^\s*$/ d' -e '/^#/ d' $input_file ) + + +user=${credentials[user]} +password=${credentials[password]} +host=${credentials[host]} +db=${credentials[db]} +protocol=${credentials[protocol]} +server=${credentials[server]} + + + +#let i=0 +#set -A arr +#BASE_CODS_ARGUMENTS="--host=$cods_host --user=$cods_user --password=$cods_pwd --port=$3306" +#BASE_ODS_ARGUMENTS="--user=$user --password=$pwd --host=$host" +psql_base_arg="postgresql://$user:$password@$host/$db" +#psql_base_arg="postgresql://postgres:j3(jLBq}e@localhost/ffm_k2" +#echo $psql_base_arg + +ifStart=`date '+%d'` +#echo "$ifStart" + + +#Check today is sunday. Scheduling weekly job +today="$(date +%a)" +sun="Mon" + + psql $psql_base_arg -q -c "update fw_core.fw_jobctl_runschedule set latest_runschedule_flag='0' where latest_runschedule_flag='1' and client_id=$1 and function_id=$2;" + psql $psql_base_arg -q -c "update fw_core.fw_jobctl_runschedule_jobstep set latest_runschedule_flag='0' where latest_runschedule_flag='1' and client_id=$1 and function_id=$2;" + psql $psql_base_arg -q -c "update fw_core.fw_jobctl_file_runschedule set latest_runschedule_flag='0' where latest_runschedule_flag='1' and client_id=$1 and function_id=$2;" + psql $psql_base_arg -q -c "update fw_core.fw_jobctl_file_sheet_runschedule set latest_runschedule_flag='0' where latest_runschedule_flag='1' and client_id=$1 and function_id=$2;" + +#inserting into fw_core.fw_jobctl_runschedule +chkrun=$(psql $psql_base_arg -t -c "select count(*) from fw_core.fw_jobctl_jobstep_master where client_id=$1 and function_id=$2 and run_frequency='daily' and active_flag=true;") +if [[ $chkrun -gt 0 ]]; then + psql $psql_base_arg -q -c "INSERT INTO fw_core.fw_jobctl_runschedule +(client_id, function_id, run_schedule_timestamp, run_frequency, start_time, begin_status, created_by, updated_by, create_timestamp, update_timestamp) +select client_id, function_id,now(),run_frequency,now(),'','Admin','Admin',now(),now() from fw_core.fw_jobctl_jobstep_master +where active_flag='TRUE' group by client_id, function_id, run_frequency limit 1;" + +#check previous day job status in fw_jobctl_runschedule +chkrun2=$(psql $psql_base_arg -t -c "select trim(end_status) from fw_core.fw_jobctl_runschedule where run_schedule_id = ( + select max(run_schedule_id) as max from fw_core.fw_jobctl_runschedule where latest_runschedule_flag='0' and client_id=$1 and function_id=$2);") + + if [ "$chkrun2" != " error" ]; then + +#Update fw_jobctl_runschedule + psql $psql_base_arg -q -c "update fw_core.fw_jobctl_runschedule set begin_status='started' where client_id=$1 and function_id=$2 and run_frequency='daily' and latest_runschedule_flag='1' " + else + psql $psql_base_arg -q -c "update fw_core.fw_jobctl_runschedule set begin_status='started',end_status='error',end_status_note = 'previous day job failed' where client_id=$1 and function_id=$2 and run_frequency='daily' and latest_runschedule_flag='1' " + echo "welcome2" + exit 1; + fi +else + echo " No active job for daily for client_id=$1" + exit 1; +fi + +# looping fw_jobctl_jobstep_master for active records +while IFS="|" read -a line +do + run_frequency=${line[2]} + job_scheduling_day="${line[1]}" + +#echo "$run_frequency" +if [ $run_frequency == "daily" ] ; then + echo "Populating daily job into fw_jobctl_runschedule_jobstep" + + psql $psql_base_arg -q -c"insert into fw_core.fw_jobctl_runschedule_jobstep(client_id, function_id,latest_runschedule_flag,run_schedule_id,run_schedule_timestamp, run_frequency, job_id, step_id, job_step_run_dependency_seuqence, +job_script_type,job_step_script_name,job_fun_param_array,job_name, step_name, job_scope, job_scope_qualifier_array, created_by,updated_by, create_timestamp, update_timestamp) +select a.client_id, a.function_id,b.latest_runschedule_flag, b.run_schedule_id,b.run_schedule_timestamp,a.run_frequency, a.job_id, a.step_id, a.job_step_run_dependency_seuqence, +a.job_script_type,a.job_step_script_name,a.job_fun_param_array,a.job_name,a.step_name,a.job_scope, a.job_scope_qualifier_array, 'Admin','Admin',now(),now() +from fw_core.fw_jobctl_jobstep_master a join fw_core.fw_jobctl_runschedule b +on a.client_id=b.client_id and a.function_id=b.function_id and a.run_frequency=b.run_frequency +where latest_runschedule_flag='1' and b.begin_status = 'started' and b.end_status is null and a.active_flag='true' and a.run_frequency='daily' +order by a.client_id,a.function_id,a.job_id,a.step_id,a.job_step_run_dependency_seuqence;" + +fi +done < <(psql $psql_base_arg -At -c"select client_id,function_id,run_frequency from fw_core.fw_jobctl_jobstep_master where client_id=$1 and function_id=$2 order by run_frequency ") + + diff --git a/sql/scripts/run_schedule.sh b/sql/scripts/run_schedule.sh new file mode 100755 index 0000000..4797673 --- /dev/null +++ b/sql/scripts/run_schedule.sh @@ -0,0 +1,176 @@ +#!/bin/bash -e + +#/**************************************************************** +#****** ForeWarn Licensing and / or usage Terms and Conditions ***** +#ForeWarn. The NextGen Insights Solution Platform + +#Copyright ▒ 2021 COMPEGENCE. All Rights Reserved + +#ForeWarn is a product of COMPEGENCE. + +#To be used only with a valid license from COMPEGENCE + +#www.compegence.com info@compegence.com +#****************************************************************/ + +#HOME="/home/compegence/customer" +#Directories +homeDir=$HOME/dev/retail +configDir=$homeDir/conf +input_file=$configDir/server_credentials.txt +declare -A credentials +while IFS="=" read -r key value; do + credentials[$key]=$value + done < <( sed -e '/^\s*$/ d' -e '/^#/ d' $input_file ) + + +user=${credentials[user]} +password=${credentials[password]} +host=${credentials[host]} +db=${credentials[db]} +protocol=${credentials[protocol]} +server=${credentials[server]} + + + +psql_base_arg="postgresql://$user:$password@$host/$db" + +echo "first arg: $1" +echo "second arg: $2" + +# load the record into the fw_jobctl_runschedule accounting for run frequency (hourly, daily, monthly, yearly) and insert + $homeDir/sql/scripts/job_load.sh $1 $2 + +##***** Run frequency loop; Outer Loop +#while loop for each client_id,function_id,run_frequency from fw_jobctl_runschedule_jobstep + +while IFS="|" read -a outer +do + client_id=${outer[0]} + function_id=${outer[1]} + run_frequency=${outer[2]} + +#Update start_time for fw_jobctl_runschedule + #psql $psql_base_arg -q -c "update fw_core.fw_jobctl_runschedule set start_time=now(),begin_status='started' where latest_runschedule_flag='1' and client_id=$client_id and function_id=$function_id and run_frequency='$run_frequency' and end_status is null " + +##** Job and Step Loop; innner loop; +#while loop for each job & step +##** Job and Step Loop; innner loop; based on the entries on the table fw_jobctl_runschedule_jobstep + + job_status=0 + prev_job_seq='' + file_count=0 + while IFS="|" read -a inner + do + client_id=${inner[0]} + function_id=${inner[1]} + run_frequency=${inner[2]} + job_id=${inner[4]} + step_id=${inner[5]} + job_name=${inner[6]} + #step_name=(${inner[7]}) + job_script_type=${inner[8]} + job_step_script_name=${inner[9]} + #remove first and last char - curly braces + job_fun_param_array=${inner[10]:1:-1} + job_step_run_dependency_seuqence=${inner[11]} + + param='' + var1=' ' + job_step_script_name_concat=$job_step_script_name'('$client_id,$function_id,$job_id,$step_id')' + + #reading array column and spliting each var and appending $ & space + IFS=',' read -r -a ADDR <<< "$job_fun_param" + for i in "${ADDR[@]}"; do + param=$param$i$var1 + done + + + +##get file count + file_count=$(psql $psql_base_arg -t -c "select object_count from fw_core.fw_jobctl_runschedule where latest_runschedule_flag='1';") + echo "file-count is $file_count" + +echo "Executing Job: $job_name by checking Previous End Status" +## Process java Program + if [[ $job_script_type == "java" ]]; then + psql $psql_base_arg -t -q -c "update fw_core.fw_jobctl_runschedule_jobstep set start_time=now(),begin_status='started' where job_step_script_name='$job_step_script_name' and client_id=$client_id and function_id=$function_id and run_frequency='$run_frequency' and latest_runschedule_flag='1' " +echo "--$prev_job_seq" + if [[ $prev_job_seq == '' ]]; then +echo "calling java jar" + java -jar $job_step_script_name + + else + chkrun=$(psql $psql_base_arg -t -c "select TRIM(end_status) from fw_core.fw_jobctl_runschedule_jobstep where latest_runschedule_flag='1' and job_step_run_dependency_seuqence=$prev_job_seq and client_id=$1 and function_id=$2;") +echo "chk $chkrun" + if [[ "$chkrun" == " success" ]]; then + java -jar $job_step_script_name + else + exit 1; + fi + fi + +## Process sql files + elif [[ $job_script_type == "sql" ]] ; then + echo "enter into sql" + psql $psql_base_arg -t -q -c "update fw_core.fw_jobctl_runschedule_jobstep set start_time=now(),begin_status='started' where job_step_script_name='$job_step_script_name' and client_id=$client_id and function_id=$function_id and run_frequency='$run_frequency' and latest_runschedule_flag='1' " + if [[ $prev_job_seq == '' ]]; then + echo "enter into sql1" + + psql $psql_base_arg -a -f $job_step_script_name $host $port $user $pwd $dbname $param $client_id $function_id $data_from_date $data_to_date $job_scope $job_scope_qualifier + else + chkrun=$(psql $psql_base_arg -t -c "select TRIM(end_status) from fw_core.fw_jobctl_runschedule_jobstep where latest_runschedule_flag='1' and job_step_run_dependency_seuqence=$prev_job_seq and client_id=$1 and function_id=$2;") + if [[ "$chkrun" == " success" ]]; then + echo "enter into sql2" + + psql $psql_base_arg -a -f $job_step_script_name $host $port $user $pwd $dbname $param $client_id $function_id $data_from_date $data_to_date $job_scope $job_scope_qualifier + else + exit 1; + fi + fi + +## Process shell_script Program + elif [[ $job_script_type == "shell_script" ]] ; then + psql $psql_base_arg -t -q -c "update fw_core.fw_jobctl_runschedule_jobstep set start_time=now(),begin_status='started' where job_step_script_name='$job_step_script_name' and client_id=$client_id and function_id=$function_id and run_frequency='$run_frequency' and latest_runschedule_flag='1' " + if [[ $prev_job_seq == '' ]]; then + $job_step_script_name + else + chkrun=$(psql $psql_base_arg -t -c "select TRIM(end_status) from fw_core.fw_jobctl_runschedule_jobstep where latest_runschedule_flag='1' and job_step_run_dependency_seuqence=$prev_job_seq and client_id=$1 and function_id=$2;") + + if [[ "$chkrun" == " success" && $file_count -gt 0 ]]; then + $job_step_script_name + else + exit 1; + fi + fi + +## Process sql fn Program + elif [[ $job_script_type == "sql_fn" ]] ; then + psql $psql_base_arg -t -q -c "update fw_core.fw_jobctl_runschedule_jobstep set start_time=now(),begin_status='started' where job_step_script_name='$job_step_script_name' and client_id=$client_id and function_id=$function_id and run_frequency='$run_frequency' and latest_runschedule_flag='1' " + if [[ $prev_job_seq == '' ]]; then + psql $psql_base_arg -c "select $job_step_script_name_concat" + else + + chkrun=$(psql $psql_base_arg -t -c "select TRIM(end_status) from fw_core.fw_jobctl_runschedule_jobstep where latest_runschedule_flag='1' and job_step_run_dependency_seuqence=$prev_job_seq and client_id=$1 and function_id=$2;") + if [[ "$chkrun" == " success" && $file_count -gt 0 ]]; then + psql $psql_base_arg -t -c "select $job_step_script_name_concat" + else + exit 1; + fi + fi + fi + +prev_job_seq=$job_step_run_dependency_seuqence +## End of While Loop +#2nd looping through fw_core.fw_jobctl_runschedule_jobstep for each client_id,function_id,run_frequency,run_schedule_id1 is completed +done < <(psql $psql_base_arg -At -c"select client_id,function_id,run_frequency,run_schedule_id,job_id,step_id,job_name,step_name,job_script_type,job_step_script_name,job_fun_param_array,job_step_run_dependency_seuqence from fw_core.fw_jobctl_runschedule_jobstep where latest_runschedule_flag='1' and client_id=$client_id and function_id=$function_id and run_frequency='$run_frequency' order by client_id,function_id,run_schedule_id,job_id,step_id,job_step_run_dependency_seuqence; ") + + +#Update end_time for fw_jobctl_runschedule + psql $psql_base_arg -q -c "update fw_core.fw_jobctl_runschedule set end_status='success',end_status_note='run_completed' ,latest_runschedule_flag='0',end_time=now() where client_id=$client_id and function_id=$function_id and run_frequency='$run_frequency' and latest_runschedule_flag='1' " + +#1st loop for client_id,function_id,run_frequency + +done < <(psql $psql_base_arg -At -c"select client_id,function_id,run_frequency from fw_core.fw_jobctl_runschedule_jobstep where client_id=$1 and function_id=$2 and latest_runschedule_flag='1' order by client_id,function_id,run_frequency ") + +